/**
 * BA Task System - Login Form Styles
 */

.ba-task-login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    background: #ffffff;
    padding: 60px 20px 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

.ba-task-login-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07), 0 10px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid #e5e7eb;
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.ba-task-login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.ba-task-login-logo img {
    max-width: 200px;
    height: auto;
}

.ba-task-login-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
    margin: 0 0 30px;
}

.ba-task-login-form {
    width: 100%;
}

.ba-task-form-group {
    margin-bottom: 20px;
}

.ba-task-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

.ba-task-form-group input[type="email"],
.ba-task-form-group input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.ba-task-form-group input[type="email"]:focus,
.ba-task-form-group input[type="password"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.ba-task-form-checkbox {
    display: flex;
    align-items: center;
}

.ba-task-form-checkbox label {
    display: flex;
    align-items: center;
    margin: 0;
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
}

.ba-task-form-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 8px;
    cursor: pointer;
}

.ba-task-form-message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.ba-task-form-message.error {
    background-color: #fff5f5;
    border: 1px solid #fc8181;
    color: #c53030;
}

.ba-task-form-message.success {
    background-color: #f0fff4;
    border: 1px solid #68d391;
    color: #2f855a;
}

.ba-task-login-button {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.ba-task-login-button:hover {
    transform: translateY(-1px);
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.25);
}

.ba-task-login-button:active {
    transform: translateY(0);
}

.ba-task-login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.ba-task-button-loading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ba-task-spinner {
    width: 20px;
    height: 20px;
    animation: ba-task-rotate 1s linear infinite;
}

.ba-task-spinner-path {
    stroke: currentColor;
    stroke-linecap: round;
    animation: ba-task-dash 1.5s ease-in-out infinite;
}

@keyframes ba-task-rotate {
    100% {
        transform: rotate(360deg);
    }
}

@keyframes ba-task-dash {
    0% {
        stroke-dasharray: 1, 150;
        stroke-dashoffset: 0;
    }
    50% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -35;
    }
    100% {
        stroke-dasharray: 90, 150;
        stroke-dashoffset: -124;
    }
}

.ba-task-login-message {
    text-align: center;
    padding: 20px;
    background-color: #f7fafc;
    border-radius: 8px;
}

.ba-task-login-message p {
    margin: 0;
    font-size: 16px;
    color: #4a5568;
}

.ba-task-login-message a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
}

.ba-task-login-message a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .ba-task-login-wrapper {
        padding: 40px 20px 20px;
    }

    .ba-task-login-container {
        padding: 30px 20px;
    }

    .ba-task-login-title {
        font-size: 24px;
    }
}
