/* ===== Authentication Pages Styles ===== */

.auth-page {
    min-height: 100vh;
    background: var(--gray-50);
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* Left Side - Branding */
.auth-left {
    background: var(--gradient-dark);
    padding: 40px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.auth-brand {
    position: relative;
    z-index: 1;
}

.auth-brand a {
    display: flex;
    align-items: center;
    gap: 12px;
}

.auth-brand .logo-text {
    color: var(--white);
}

.auth-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 40px 0;
}

/* Illustration Cards */
.auth-illustration {
    position: relative;
    height: 280px;
    margin-bottom: 40px;
}

.illustration-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    padding: 24px;
}

.illustration-card.card-main {
    max-width: 320px;
}

.illustration-card .card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-weight: 600;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.status-dot.success {
    background: var(--success);
    box-shadow: 0 0 10px var(--success);
}

.card-stats {
    display: flex;
    gap: 20px;
}

.card-stats .stat {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-300);
    font-size: 0.875rem;
}

.card-stats .stat i {
    color: var(--primary-light);
}

.card-benefits .benefit {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    color: var(--gray-300);
    font-size: 0.9375rem;
}

.card-benefits .benefit i {
    color: var(--success);
}

/* Floating Cards */
.card-float {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    animation: floatCard 4s ease-in-out infinite;
}

.card-float i {
    font-size: 1.25rem;
    color: var(--primary-light);
}

.card-float span {
    color: var(--white);
    font-weight: 600;
    font-size: 0.9375rem;
}

.card-1 {
    top: 0;
    right: 0;
    animation-delay: 0s;
}

.card-2 {
    bottom: 0;
    right: 40px;
    animation-delay: 1s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* Auth Tagline */
.auth-tagline {
    margin-bottom: 32px;
}

.auth-tagline h2 {
    color: var(--white);
    font-size: 2rem;
    margin-bottom: 12px;
}

.auth-tagline p {
    color: var(--gray-400);
    font-size: 1rem;
    line-height: 1.7;
}

/* Auth Features */
.auth-features {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.auth-features .feature {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--gray-300);
    font-size: 0.875rem;
}

.auth-features .feature i {
    color: var(--primary-light);
}

/* Right Side - Form */
.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: var(--white);
    overflow-y: auto;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 440px;
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--gray-500);
}

/* Social Auth */
.social-auth {
    margin-bottom: 24px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 24px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-700);
    cursor: pointer;
    transition: var(--transition);
}

.btn-social:hover {
    background: var(--gray-50);
    border-color: var(--gray-300);
}

.btn-social svg {
    flex-shrink: 0;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.auth-divider span {
    color: var(--gray-500);
    font-size: 0.875rem;
}

/* Form Styles */
.auth-form {
    margin-bottom: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 16px;
    color: var(--gray-400);
    pointer-events: none;
    transition: var(--transition);
}

.input-wrapper input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    font-size: 0.9375rem;
    color: var(--gray-700);
    background: var(--gray-50);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    outline: none;
    transition: var(--transition);
}

.input-wrapper input::placeholder {
    color: var(--gray-400);
}

.input-wrapper input:focus {
    background: var(--white);
    border-color: var(--primary);
}

.input-wrapper input:focus + .input-icon,
.input-wrapper input:focus ~ .input-icon {
    color: var(--primary);
}

.input-wrapper.error input {
    border-color: var(--danger);
}

.toggle-password {
    position: absolute;
    right: 16px;
    padding: 4px;
    color: var(--gray-400);
    cursor: pointer;
    transition: var(--transition);
}

.toggle-password:hover {
    color: var(--gray-600);
}

.error-message {
    display: block;
    margin-top: 6px;
    font-size: 0.8125rem;
    color: var(--danger);
}

/* Password Strength */
.password-strength {
    margin-top: 8px;
}

.strength-meter {
    height: 4px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 6px;
}

.strength-bar {
    height: 100%;
    width: 0;
    border-radius: var(--radius-full);
    transition: var(--transition);
}

.strength-bar.weak {
    width: 33%;
    background: var(--danger);
}

.strength-bar.medium {
    width: 66%;
    background: var(--warning);
}

.strength-bar.strong {
    width: 100%;
    background: var(--success);
}

.strength-text {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* Form Options */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.checkbox-wrapper input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    position: relative;
    flex-shrink: 0;
    transition: var(--transition);
}

.checkbox-wrapper input:checked + .checkmark {
    background: var(--primary);
    border-color: var(--primary);
}

.checkbox-wrapper input:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid var(--white);
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    line-height: 1.4;
}

.checkbox-label a {
    color: var(--primary);
    font-weight: 500;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-link {
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.auth-footer p {
    color: var(--gray-600);
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* Auth Notice */
.auth-notice {
    margin-top: 24px;
    text-align: center;
}

.auth-notice p {
    font-size: 0.8125rem;
    color: var(--gray-500);
}

.auth-notice a {
    color: var(--gray-600);
}

.auth-notice a:hover {
    color: var(--primary);
}

/* Button Loading State */
.btn .btn-loader {
    margin-left: 8px;
}

.btn.loading .btn-text {
    opacity: 0.7;
}

/* Google Auth Loader Overlay */
.auth-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease-in-out;
}

.auth-loader-content {
    background: white;
    padding: 2rem 3rem;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 280px;
}

.auth-loader-spinner {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.auth-loader-spinner i {
    animation: spin 1s linear infinite;
}

.auth-loader-text {
    font-size: 1rem;
    color: var(--gray-700);
    font-weight: 500;
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-left {
        display: none;
    }

    .auth-right {
        padding: 32px 24px;
    }
}

@media (max-width: 576px) {
    .auth-right {
        padding: 24px 16px;
    }

    .auth-header h1 {
        font-size: 1.75rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .btn-social {
        padding: 12px 20px;
        font-size: 0.875rem;
    }
}

