/* Auth Pages Styles */

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 20px;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1200px;
    width: 100%;
    align-items: center;
}

.auth-box {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.5s ease-out;
}

.auth-sidebar {
    color: white;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo img {
    height: 50px;
    object-fit: contain;
}

.auth-box h1 {
    color: #333;
    font-size: 28px;
    margin-bottom: 8px;
    text-align: center;
}

.auth-subtitle {
    color: #666;
    text-align: center;
    margin-bottom: 30px;
    font-size: 14px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 14px;
}

.form-group input {
    padding: 12px 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #e74c3c;
}

.form-error {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 4px;
    display: none;
}

.form-error.show {
    display: block;
}

/* Password Requirements */

.password-requirements {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    color: #999;
}

.password-requirements .req {
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.5;
    transition: all 0.2s ease;
}

.password-requirements .req.met {
    opacity: 1;
    color: #27ae60;
}

/* Remember & Forgot */

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #333;
}

.checkbox input[type='checkbox'] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #667eea;
}

.forgot-link {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-link:hover {
    color: #764ba2;
}

/* Terms Check */

.terms-check {
    display: flex;
    gap: 10px;
    font-size: 13px;
    color: #666;
    align-items: flex-start;
}

.terms-check input[type='checkbox'] {
    margin-top: 2px;
    cursor: pointer;
    accent-color: #667eea;
}

.terms-check a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.3s ease;
}

.terms-check a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Buttons */

.btn-block {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    min-height: 44px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-text,
.btn-loader {
    transition: all 0.3s ease;
}

.btn:disabled .btn-text {
    display: none;
}

.btn:disabled .btn-loader {
    display: block !important;
}

.spinner {
    display: block;
    animation: spin 1s linear infinite;
}

/* Divider */

.auth-divider {
    text-align: center;
    color: #ccc;
    margin: 25px 0;
    position: relative;
    font-size: 12px;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.auth-divider {
    background: white;
    position: relative;
    z-index: 1;
}

/* Footer */

.form-message {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    text-align: center;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.form-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #666;
}

.auth-footer a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #764ba2;
}

/* Sidebar */

.sidebar-content {
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.sidebar-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.sidebar-content ul {
    list-style: none;
    padding: 0;
}

.sidebar-content li {
    padding: 10px 0;
    font-size: 15px;
    line-height: 1.6;
}

/* Responsive */

@media (max-width: 768px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .auth-box {
        padding: 30px 20px;
    }

    .auth-sidebar {
        display: none;
    }

    .auth-box h1 {
        font-size: 24px;
    }

    .remember-forgot {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    body {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
}

@media (max-width: 480px) {
    .auth-box {
        padding: 20px;
    }

    .auth-box h1 {
        font-size: 20px;
    }

    .form-group input {
        font-size: 16px;
    }

    .btn-block {
        font-size: 14px;
        padding: 10px;
    }
}
