﻿/* wwwroot/css/auth-pages.css */
/*
:root {
    --primary: #000a68;
    --primary-dark: #001a88;
    --primary-light: rgba(0, 10, 104, 0.1);
    --success: #10b981;
    --error: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #111827;
    --gradient-primary: linear-gradient(135deg, #000a68 0%, #001a88 100%);
}*/
/*
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gray-50);
    min-height: 100vh;
}*/

/* Auth Container */

.auth-pages .auth-container {
    display: flex;
    min-height: 100vh;
}

/* Left Side - Branding */

.auth-pages .auth-left {
    flex: 1;
    background: var(--gradient-primary);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.auth-pages .auth-brand {
    z-index: 2;
}

.auth-pages .brand-logo {
    font-size: 32px;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
    display: inline-block;
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

.auth-pages .brand-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 20px;
}

.auth-pages .brand-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    max-width: 500px;
}

/* Features */

.auth-pages .auth-features {
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.auth-pages .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.auth-pages .feature-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.auth-pages .feature-text h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 4px;
}

.auth-pages .feature-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Illustration */

.auth-pages .auth-illustration {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 400px;
    height: 300px;
    opacity: 0.1;
    z-index: 1;
}

/* Password Tips */

.auth-pages .password-tips {
    z-index: 2;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px;
}

.auth-pages .tips-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 16px;
}

.auth-pages .tips-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

    .auth-pages .tips-list li {
        display: flex;
        align-items: center;
        gap: 12px;
        color: rgba(255, 255, 255, 0.9);
        font-size: 15px;
    }

        .auth-pages .tips-list li svg {
            flex-shrink: 0;
            color: var(--success);
        }

/* Right Side - Form */

.auth-pages .auth-right {
    flex: 1;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.auth-pages .auth-form-container {
    width: 100%;
    max-width: 480px;
}

/* Back Button */

.auth-pages .back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 32px;
    transition: color 0.2s;
}

    .auth-pages .back-button:hover {
        color: var(--primary);
    }

/* Auth Header */

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

.auth-pages .auth-icon {
    width: 72px;
    height: 72px;
    background: var(--primary-light);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

    .auth-pages .auth-icon svg {
        color: var(--primary);
    }

.auth-pages .auth-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.auth-pages .auth-description {
    font-size: 15px;
    color: var(--gray-600);
    line-height: 1.6;
}

/* Alerts */

.auth-pages .alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    line-height: 1.5;
}

    .auth-pages .alert svg {
        flex-shrink: 0;
        margin-top: 2px;
    }

.auth-pages .alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #1e40af;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Form */

.auth-pages .auth-form {
    margin-bottom: 24px;
}

.auth-pages .form-group {
    margin-bottom: 24px;
}

    .auth-pages .form-group label {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        font-weight: 600;
        color: var(--gray-700);
        margin-bottom: 8px;
    }

        .auth-pages .form-group label svg {
            color: var(--gray-400);
        }

.auth-pages .input-wrapper {
    position: relative;
}

    .auth-pages .input-wrapper input {
        width: 100%;
        padding: 14px 48px 14px 16px;
        border: 2px solid var(--gray-200);
        border-radius: 10px;
        font-size: 15px;
        transition: all 0.2s;
        outline: none;
    }

        .auth-pages .input-wrapper input:focus {
            border-color: var(--primary);
            box-shadow: 0 0 0 4px var(--primary-light);
        }

    .auth-pages .input-wrapper.disabled input {
        background: var(--gray-100);
        color: var(--gray-600);
        cursor: not-allowed;
    }

.auth-pages .input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
}

.auth-pages .toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    padding: 4px;
    transition: color 0.2s;
}

    .auth-pages .toggle-password:hover {
        color: var(--primary);
    }

.auth-pages .match-indicator {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--success);
}

/* Password Strength */

.auth-pages .password-strength {
    margin-top: 12px;
}

.auth-pages .strength-bars {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.auth-pages .strength-bar {
    flex: 1;
    height: 4px;
    background: var(--gray-200);
    border-radius: 2px;
    transition: background 0.3s;
}

    .auth-pages .strength-bar.active {
        background: var(--error);
    }

        .auth-pages .strength-bar.active.weak {
            background: var(--error);
        }

        .auth-pages .strength-bar.active.medium {
            background: var(--warning);
        }

        .auth-pages .strength-bar.active.strong {
            background: var(--success);
        }

.auth-pages .strength-text {
    font-size: 13px;
    color: var(--gray-600);
}

    .auth-pages .strength-text strong {
        color: var(--gray-900);
    }

/* Password Requirements */

.auth-pages .password-requirements {
    background: var(--gray-50);
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}

.auth-pages .requirements-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 12px;
}

.auth-pages .requirements-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .auth-pages .requirements-list li {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 14px;
        color: var(--gray-600);
        transition: color 0.2s;
    }

        .auth-pages .requirements-list li svg {
            flex-shrink: 0;
            color: var(--gray-400);
            transition: all 0.2s;
        }

        .auth-pages .requirements-list li.met {
            color: var(--success);
        }

            .auth-pages .requirements-list li.met svg {
                color: var(--success);
            }

                .auth-pages .requirements-list li.met svg circle {
                    fill: var(--success);
                }

/* Buttons */

.auth-pages .btn-primary,
.auth-pages .btn-secondary {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.auth-pages .btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

    .auth-pages .btn-primary:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(0, 10, 104, 0.3);
    }

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

.auth-pages .btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--gray-200);
}

    .auth-pages .btn-secondary:hover {
        background: var(--gray-50);
        border-color: var(--primary);
    }

.auth-pages .btn-large {
    padding: 18px 32px;
    font-size: 18px;
}

.auth-pages .btn-loader {
    display: inline-flex;
}

.auth-pages .spinner {
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

    .auth-pages .spinner circle {
        stroke-dasharray: 80, 200;
        stroke-dashoffset: 0;
        animation: dash 1.5s ease-in-out infinite;
    }

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes dash {
    0% {
        stroke-dasharray: 1, 200;
        stroke-dashoffset: 0;
    }

    50% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -35px;
    }

    100% {
        stroke-dasharray: 89, 200;
        stroke-dashoffset: -124px;
    }
}

/* Auth Footer */

.auth-pages .auth-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.auth-pages .footer-text {
    font-size: 14px;
    color: var(--gray-600);
}

    .auth-pages .footer-text a {
        color: var(--primary);
        text-decoration: none;
        font-weight: 600;
        display: inline-flex;
        align-items: center;
        gap: 4px;
    }

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

/* Help Section */

.auth-pages .auth-help {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 20px;
    margin-top: 24px;
}

.auth-pages .help-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 12px;
}

.auth-pages .help-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .auth-pages .help-list li {
        font-size: 13px;
        color: var(--gray-600);
        line-height: 1.5;
        padding-left: 20px;
        position: relative;
    }

        .auth-pages .help-list li::before {
            content: '→';
            position: absolute;
            left: 0;
            color: var(--primary);
        }

/* Confirmation Page */

.auth-pages .auth-confirmation {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 60px 40px;
}

.auth-pages .confirmation-content {
    text-align: center;
}

/* Success Animation */

.auth-pages .success-animation {
    margin-bottom: 32px;
}

.auth-pages .success-icon {
    width: 120px;
    height: 120px;
    margin: 0 auto;
    position: relative;
}

.auth-pages .checkmark {
    width: 120px;
    height: 120px;
}

.auth-pages .checkmark-circle {
    stroke: var(--success);
    stroke-width: 3;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.auth-pages .checkmark-check {
    stroke: var(--success);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}

@keyframes stroke {
    to {
        stroke-dashoffset: 0;
    }
}

.auth-pages .confirmation-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 16px;
}

.auth-pages .confirmation-text {
    font-size: 16px;
    color: var(--gray-600);
    line-height: 1.6;
    max-width: 500px;
    margin: 0 auto 32px;
}

/* Info Cards */

.auth-pages .info-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 40px 0;
}

.auth-pages .info-card {
    background: var(--gray-50);
    border-radius: 12px;
    /*padding: 24px;*/
    text-align: center;
}

.auth-pages .info-icon {
    font-size: 32px;
    margin-bottom: 12px;
}

.auth-pages .info-card h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.auth-pages .info-card p {
    font-size: 13px;
    color: var(--gray-600);
    line-height: 1.5;
}

/* Success Stats */

.auth-pages .success-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin: 32px 0;
    flex-wrap: wrap;
}

.auth-pages .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.auth-pages .stat-icon {
    font-size: 32px;
}

.auth-pages .stat-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-700);
}

/* Confirmation Actions */

.auth-pages .confirmation-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 32px 0;
}

/* Help Section in Confirmation */

.auth-pages .help-section {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px;
    margin-top: 32px;
    text-align: left;
}

    .auth-pages .help-section.small {
        text-align: center;
        padding: 16px;
    }

        .auth-pages .help-section.small p {
            font-size: 14px;
            color: var(--gray-600);
        }

        .auth-pages .help-section.small a {
            color: var(--primary);
            text-decoration: none;
            font-weight: 600;
        }

.auth-pages .help-steps {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

    .auth-pages .help-steps li {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        font-size: 14px;
        color: var(--gray-700);
        line-height: 1.6;
    }

.auth-pages .step-number {
    width: 24px;
    height: 24px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Security Tips */

.auth-pages .security-tips {
    background: var(--gray-50);
    border-radius: 12px;
    padding: 24px;
    margin-top: 32px;
    text-align: left;
}

/* Validation */

.auth-pages .validation-summary,
.auth-pages .field-validation-error {
    color: var(--error);
    font-size: 13px;
    margin-top: 8px;
}

.auth-pages .validation-summary {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    padding: 12px 16px;
    margin-bottom: 24px;
}

/* Responsive */

@media (max-width: 1024px) {
    .auth-pages .auth-left {
        display: none;
    }

    .auth-pages .auth-right {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .auth-pages .auth-right {
        padding: 24px;
    }

    .auth-pages .auth-form-container {
        max-width: 100%;
    }

    .auth-pages .brand-title {
        font-size: 32px;
    }

    .auth-pages .info-cards {
        grid-template-columns: 1fr;
    }

    .auth-pages .success-stats {
        flex-direction: column;
        gap: 16px;
    }

    .auth-pages .confirmation-title {
        font-size: 24px;
    }
}
