/* ========================================
   AUTHENTICATION PAGES
   ======================================== */

.auth-body {
    background: linear-gradient(135deg, #071A2E 0%, #0D1117 100%);
    min-height: 100vh;
    overflow: hidden;
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* ========================================
   LEFT SIDE: EDITORIAL
   ======================================== */

.auth-left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: radial-gradient(ellipse at center, rgba(255, 107, 44, 0.05) 0%, transparent 70%);
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(255, 107, 44, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: drift 20s linear infinite;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.auth-content {
    position: relative;
    z-index: 1;
    max-width: 400px;
}

.auth-hero {
    margin-bottom: 3rem;
}

.auth-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    color: #F7F8FA;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #FF6B2C 0%, #FFB380 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    font-size: 1.125rem;
    color: #8892A6;
    line-height: 1.6;
}

/* Route Visualization */
.route-visualization {
    margin: 2rem 0;
    padding: 2rem;
    background: rgba(255, 107, 44, 0.05);
    border: 1px solid rgba(255, 107, 44, 0.2);
    border-radius: 1rem;
}

.route-svg {
    width: 100%;
    height: 200px;
}

.route-point {
    animation: pulse 2s ease-in-out infinite;
}

.route-line {
    animation: flowLine 3s ease-in-out infinite;
}

.route-label {
    font-size: 12px;
    fill: #8892A6;
    font-weight: 500;
}

@keyframes flowLine {
    0%, 100% { stroke-dashoffset: 0; }
}

@keyframes pulse {
    0%, 100% { r: 8; opacity: 1; }
    50% { r: 12; opacity: 0.6; }
}

/* Network Stats */
.network-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.stat-badge {
    background: rgba(255, 107, 44, 0.1);
    border: 1px solid rgba(255, 107, 44, 0.2);
    border-radius: 0.75rem;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s;
}

.stat-badge:hover {
    background: rgba(255, 107, 44, 0.2);
    border-color: rgba(255, 107, 44, 0.4);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #FF6B2C;
    margin-bottom: 0.5rem;
}

.stat-label {
    display: block;
    font-size: 0.875rem;
    color: #8892A6;
    font-weight: 500;
}

/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0;
    gap: 1rem;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    opacity: 0.5;
}

.step.active {
    opacity: 1;
}

.step-number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 107, 44, 0.2);
    border: 2px solid rgba(255, 107, 44, 0.4);
    font-weight: 600;
    color: #FF6B2C;
    font-size: 0.875rem;
}

.step.active .step-number {
    background: rgba(255, 107, 44, 0.3);
    border-color: #FF6B2C;
}

.step-label {
    font-size: 0.75rem;
    color: #8892A6;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Benefits List */
.benefits-list {
    margin-top: 2rem;
}

.benefit {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: #8892A6;
    font-size: 0.9375rem;
}

.benefit i {
    color: #20C997;
    font-size: 1.125rem;
}

/* Recovery Steps */
.recovery-steps {
    margin: 2rem 0;
}

.recovery-step {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(255, 107, 44, 0.05);
    border-left: 3px solid #FF6B2C;
    border-radius: 0.5rem;
}

.recovery-step .step-number {
    width: 32px;
    height: 32px;
    min-width: 32px;
    font-size: 0.75rem;
}

.recovery-step .step-text {
    font-size: 0.9375rem;
    color: #F7F8FA;
}

/* Email Animation */
.email-animation {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

.email-icon {
    position: relative;
    font-size: 4rem;
    color: #FF6B2C;
    animation: float 3s ease-in-out infinite;
}

.email-pulse {
    position: absolute;
    inset: -20px;
    border: 2px solid #FF6B2C;
    border-radius: 50%;
    animation: pulsing 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

@keyframes pulsing {
    0% { transform: scale(1); opacity: 1; }
    100% { transform: scale(1.5); opacity: 0; }
}

/* Security Features */
.security-features {
    margin-top: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background: rgba(32, 201, 151, 0.05);
    border-radius: 0.75rem;
    transition: all 0.3s;
}

.feature:hover {
    background: rgba(32, 201, 151, 0.1);
    transform: translateX(5px);
}

.feature i {
    color: #20C997;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.feature span {
    color: #F7F8FA;
    font-weight: 500;
}

/* ========================================
   RIGHT SIDE: FORM
   ======================================== */

.auth-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: #0D1117;
}

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

.auth-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #F7F8FA;
    margin-bottom: 2rem;
}

.auth-logo i {
    font-size: 1.75rem;
    color: #FF6B2C;
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #8892A6;
    font-size: 0.9375rem;
}

/* Auth Form */
.auth-form {
    margin-bottom: 2rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form .form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #F7F8FA;
    font-size: 0.875rem;
    font-weight: 500;
}

.auth-form .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: #161B22;
    border: 1px solid #21262D;
    border-radius: 0.75rem;
    color: #F7F8FA;
    font-size: 0.9375rem;
    transition: all 0.25s;
}

.auth-form .form-control::placeholder {
    color: #3B4556;
}

.auth-form .form-control:focus {
    background: #161B22;
    border-color: #FF6B2C;
    box-shadow: 0 0 10px rgba(255, 107, 44, 0.2);
}

.auth-form .form-select {
    background: #161B22 url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%238892A6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M2 5l6 6 6-6'/%3e%3c/svg%3e") right 0.75rem center/16px 16px no-repeat;
    padding-right: 2.5rem;
}

/* Auth Remember */
.auth-remember {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.auth-remember .form-check-input {
    width: 1.125rem;
    height: 1.125rem;
    border: 1px solid #21262D;
    border-radius: 0.3rem;
    background: #161B22;
    accent-color: #FF6B2C;
    margin-right: 0.5rem;
}

.auth-remember .form-check-label {
    color: #8892A6;
    font-size: 0.9375rem;
    cursor: pointer;
}

/* Auth Buttons */
.btn-login {
    width: 100%;
    padding: 0.875rem 1rem;
    background: linear-gradient(135deg, #FF6B2C 0%, #FF5A0C 100%);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 15px rgba(255, 107, 44, 0.3);
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 44, 0.4);
}

.btn-google {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #161B22;
    border: 1px solid #21262D;
    color: #F7F8FA;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
}

.btn-google:hover {
    background: #21262D;
    border-color: #FF6B2C;
}

/* Auth Divider */
.auth-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
    color: #3B4556;
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #21262D;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    color: #8892A6;
    font-size: 0.9375rem;
}

.auth-footer p {
    margin-bottom: 0.75rem;
}

.auth-footer a {
    color: #FF6B2C;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.25s;
}

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

/* Recovery Note */
.recovery-note {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 107, 44, 0.1);
    border-left: 3px solid #FF6B2C;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    font-size: 0.875rem;
    color: #F7F8FA;
}

.recovery-note i {
    color: #FF6B2C;
    font-size: 1.125rem;
    flex-shrink: 0;
}

.recovery-note p {
    margin: 0;
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
}

.strength-meter {
    height: 4px;
    background: #161B22;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #DC3545, #FFC107, #20C997);
    transition: width 0.3s;
    border-radius: 2px;
}

.strength-text {
    color: #8892A6;
    font-size: 0.75rem;
}

/* Password Requirements */
.password-requirements {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(0, 212, 255, 0.05);
    border: 1px solid rgba(0, 212, 255, 0.2);
    border-radius: 0.75rem;
}

.requirement {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #8892A6;
}

.requirement i {
    font-size: 0.875rem;
    opacity: 0.5;
    transition: all 0.3s;
}

.requirement.met {
    color: #20C997;
}

.requirement.met i {
    opacity: 1;
}

/* Verification Card */
.verification-card {
    background: #161B22;
    border: 1px solid #21262D;
    border-radius: 0.75rem;
    padding: 2rem;
}

.verification-status {
    text-align: center;
    padding: 2rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
}

.verification-status.pending {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.2);
}

.verification-status i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #FFC107;
    animation: pulse 2s ease-in-out infinite;
}

.verification-status h3 {
    color: #FFC107;
    margin-bottom: 0.5rem;
}

.verification-status p {
    color: #8892A6;
    margin: 0;
}

/* Code Inputs */
.code-inputs {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.code-input {
    width: 100%;
    height: 50px;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    background: #0D1117;
    border: 2px solid #21262D;
    border-radius: 0.75rem;
    color: #FF6B2C;
    transition: all 0.25s;
}

.code-input:focus {
    border-color: #FF6B2C;
    box-shadow: 0 0 10px rgba(255, 107, 44, 0.2);
}

/* Resend Section */
.resend-section {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #21262D;
}

.resend-section p {
    color: #8892A6;
    margin-bottom: 0.75rem;
}

.resend-section .btn-link {
    color: #FF6B2C;
}

/* ========================================
   RESPONSIVE
   ======================================== */

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

    .auth-left {
        display: none;
    }

    .auth-right {
        padding: 2rem;
    }
}

@media (max-width: 576px) {
    .auth-left,
    .auth-right {
        padding: 1.5rem;
    }

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

    .auth-title {
        font-size: 2rem;
    }

    .code-inputs {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }

    .code-input {
        height: 40px;
        font-size: 1rem;
    }
}
