/* Shared authentication styles for login and register pages */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    color: #333333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(10, 102, 194, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(10, 102, 194, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 40% 20%, rgba(74, 158, 255, 0.05) 0%, transparent 50%);
    animation: backgroundFade 15s ease-in-out infinite;
    z-index: 0;
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 60% 30%, rgba(10, 102, 194, 0.06) 0%, transparent 50%),
                radial-gradient(circle at 30% 70%, rgba(74, 158, 255, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 90% 60%, rgba(10, 102, 194, 0.05) 0%, transparent 50%);
    animation: backgroundFade 18s ease-in-out infinite reverse;
    z-index: 0;
    pointer-events: none;
}

@keyframes backgroundFade {
    0%, 100% {
        opacity: 0.5;
        transform: translate(0, 0) scale(1);
    }
    33% {
        opacity: 0.8;
        transform: translate(2%, 2%) scale(1.05);
    }
    66% {
        opacity: 0.6;
        transform: translate(-2%, 1%) scale(0.95);
    }
}

.auth-container {
    width: 100%;
    max-width: 440px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.auth-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    display: block;
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
}

.auth-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.auth-header p {
    font-size: 15px;
    color: #666666;
}

.auth-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

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

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #ffffff;
    color: #1a1a1a;
    transition: all 0.2s;
    outline: none;
}

.form-input:focus {
    border-color: #0a66c2;
    box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
}

.form-input::placeholder {
    color: #999999;
}

.password-toggle {
    position: relative;
}

.password-toggle-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666666;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.password-toggle-btn:hover {
    color: #1a1a1a;
}

.password-toggle-btn svg {
    width: 18px;
    height: 18px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    font-size: 14px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkbox-input {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #0a66c2;
}

.checkbox-label {
    color: #666666;
    cursor: pointer;
}

.forgot-password {
    color: #0a66c2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #004182;
    text-decoration: underline;
}

.btn-primary {
    width: 100%;
    padding: 12px 24px;
    background: #0a66c2;
    border: none;
    border-radius: 6px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 24px;
}

.btn-primary:hover {
    background: #004182;
}

.btn-primary:active {
    transform: translateY(1px);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0;
    color: #999999;
    font-size: 14px;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e0e0e0;
}

.divider span {
    padding: 0 16px;
}

.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-social {
    width: 100%;
    padding: 12px 24px;
    background: #ffffff;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.btn-social:hover {
    background: #f8f9fa;
    border-color: #0a66c2;
}

.btn-social svg {
    width: 20px;
    height: 20px;
}

.auth-link {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
    font-size: 14px;
    color: #666666;
}

.auth-link a {
    color: #0a66c2;
    text-decoration: none;
    font-weight: 600;
    margin-left: 4px;
}

.auth-link a:hover {
    text-decoration: underline;
}

.error-message {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #856404;
    font-size: 14px;
    display: none;
}

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

.success-message {
    background: #d4edda;
    border: 1px solid #28a745;
    border-radius: 6px;
    padding: 12px 16px;
    margin-bottom: 20px;
    color: #155724;
    font-size: 14px;
    display: none;
}

.success-message.show {
    display: block;
}

.footer-links {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid #e0e0e0;
}

.footer-links a {
    color: #666666;
    text-decoration: none;
    font-size: 13px;
    margin: 0 12px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #0a66c2;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 24px;
    }

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

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

