/* Authentication Page Styles */

.auth-container {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Left Side - Branding */
.auth-branding {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.95) 0%, rgba(118, 75, 162, 0.95) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-branding::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.branding-content {
    position: relative;
    z-index: 1;
    max-width: 500px;
    text-align: center;
}

.auth-logo {
    width: 120px;
    height: auto;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
}

.branding-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: white;
}

.branding-content > p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.95;
}

.features-list {
    text-align: left;
    margin-top: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.feature-item i {
    font-size: 1.5rem;
    color: #4ade80;
}

/* Right Side - Forms */
.auth-forms {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: white;
    position: relative;
}

.form-container {
    width: 100%;
    max-width: 480px;
}

.auth-form {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.auth-form.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-form h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 10px;
}

.form-subtitle {
    color: var(--text-light);
    margin-bottom: 30px;
    font-size: 1rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group label i {
    margin-right: 8px;
    color: var(--primary-color);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: #9ca3af;
}

/* Password Input */
.password-input {
    position: relative;
}

.password-input input {
    padding-right: 50px;
}

.toggle-password {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 8px;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.toggle-password:hover {
    color: var(--primary-color);
}

.password-hint {
    display: block;
    margin-top: 6px;
    font-size: 0.85rem;
    color: var(--text-light);
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-color);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-color);
}

.forgot-password {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Buttons */
.btn-full {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.btn-google,
.btn-apple {
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: white;
    color: var(--text-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
}

.btn-google:hover {
    border-color: #4285f4;
    background: #f8faff;
    color: #4285f4;
}

.btn-apple:hover {
    border-color: #000;
    background: #f5f5f5;
    color: #000;
}

.btn-google i {
    font-size: 1.2rem;
}

.btn-apple i {
    font-size: 1.3rem;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: var(--text-light);
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e5e7eb;
}

.divider span {
    padding: 0 15px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Switch Form */
.switch-form {
    text-align: center;
    margin-top: 25px;
    color: var(--text-light);
    font-size: 0.95rem;
}

.switch-form a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.switch-form a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f4f6;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay p {
    margin-top: 20px;
    color: var(--text-color);
    font-weight: 500;
}

/* Message Boxes */
.message-box {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2000;
    animation: slideIn 0.3s ease-out;
    max-width: 400px;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.message-box.success {
    background: #10b981;
    color: white;
}

.message-box.error {
    background: #ef4444;
    color: white;
}

.message-box i {
    font-size: 1.5rem;
}

.message-box p {
    margin: 0;
    font-weight: 500;
}

.resend-btn {
    margin-top: 12px;
    padding: 8px 16px;
    background: white;
    color: #ef4444;
    border: 2px solid white;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.resend-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
}

.resend-btn i {
    font-size: 1rem;
}

/* Responsive Design */
@media (max-width: 968px) {
    .auth-branding {
        display: none;
    }

    .auth-forms {
        flex: 1;
        padding: 20px;
    }

    .form-container {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .auth-form h2 {
        font-size: 1.75rem;
    }

    .form-subtitle {
        font-size: 0.9rem;
    }

    .form-group input,
    .form-group select {
        padding: 12px 14px;
        font-size: 0.95rem;
    }

    .btn-full,
    .btn-google,
    .btn-apple {
        padding: 12px;
        font-size: 0.95rem;
    }

    .message-box {
        right: 10px;
        left: 10px;
        max-width: none;
    }
}

/* Terms Link */
.checkbox-label a {
    color: var(--primary-color);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}
