﻿:root {
    --green-50: #f0fdf4;
    --green-100: #d3f0dc;
    --green-200: #bbf7d0;
    --green-300: #86efac;
    --green-400: #4ade80;
    --green-600: #16a34a;
    --green-700: #15803d;
    --green-800: #166534;
    --green-900: #14532d;
    --red-50: #fef2f2;
    --red-100: #fee2e2;
    --red-200: #fecaca;
    --red-400: #f87171;
    --red-500: #ef4444;
    --red-600: #dc2626;
    --red-700: #b91c1c;
    --red-800: #991b1b;
    --red-900: #7f1d1d;
    --yellow-50: #fefce8;
    --yellow-200: #fef08a;
    --yellow-800: #854d0e;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-500: #6b7280;
    --gray-700: #374151;
    --gray-900: #111827;
}

body {
    background-color: var(--gray-50);
    min-height: 100vh;
}

.page-container {
    padding: 1rem;
}

.content-wrapper {
    max-width: 600px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.auth-page-content {
    max-width: 500px;
    margin: 3rem auto 0;
}

.auth-icon-wrapper {
    width: 4rem;
    height: 4rem;
    background-color: var(--green-50);
    border: 1px solid var(--green-200);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.auth-icon {
    width: 2rem;
    height: 2rem;
    color: var(--green-600);
    display: block !important;
}

.auth-title {
    color: var(--gray-900);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    text-align: center;
    letter-spacing: -0.025em;
}

.auth-description {
    color: var(--gray-700);
    font-size: 0.9375rem;
    margin: 0 0 2rem 0;
    line-height: 1.5;
    text-align: center;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    color: var(--gray-900);
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    display: block;
}

.form-control {
    border: 1px solid var(--gray-200);
    border-radius: 0.375rem;
    padding: 0.625rem 0.75rem;
    transition: all 0.15s ease;
    font-size: 0.9375rem;
    width: 100%;
}

.form-control:focus {
    border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
    outline: none;
}

.form-control-2fa {
    text-align: center;
    font-size: 1.25rem;
    letter-spacing: 0.25em;
    font-weight: 500;
    padding: 0.875rem 1rem;
}

.checkbox-wrapper {
    margin-bottom: 1.5rem;
    padding: 1rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    margin: 0;
}

.checkbox-input {
    width: 1.125rem;
    height: 1.125rem;
    cursor: pointer;
    border: 1px solid var(--gray-300);
    border-radius: 0.25rem;
}

.checkbox-input:checked {
    background-color: var(--green-600);
    border-color: var(--green-600);
}

.checkbox-text {
    color: var(--gray-900);
    font-size: 0.9375rem;
    font-weight: 500;
}

.checkbox-hint {
    color: var(--gray-500);
    font-size: 0.8125rem;
    margin: 0.5rem 0 0 1.625rem;
}

.btn-auth-submit {
    width: 100%;
    background-color: var(--green-600);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}

.btn-auth-submit:hover {
    background-color: var(--green-700);
}

.btn-auth-submit:active {
    transform: scale(0.98);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.5rem 0;
}

.divider-line {
    flex: 1;
    height: 1px;
    background-color: var(--gray-200);
}

.divider-text {
    color: var(--gray-700);
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-recovery-link {
    width: 100%;
    background-color: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
    padding: 0.75rem 1.5rem;
    border-radius: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .7rem;
    margin: .6rem 0;
    cursor: pointer;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-recovery-link:hover {
    background-color: var(--gray-50);
    border-color: var(--gray-300);
}

.btn-recovery-link:active {
    transform: scale(0.98);
}

.btn-recovery-link svg {
    margin-bottom: 3px;
}

.auth-info-card {
    background-color: var(--green-50);
    border: 1px solid var(--green-200);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.info-icon {
    flex-shrink: 0;
    color: var(--gray-700);
    margin-top: 0.125rem;
}

.auth-info-text {
    color: var(--gray-700);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

.validation-message {
    color: var(--red-600);
    font-size: 0.875rem;
    margin-top: 0.375rem;
    display: block;
}

.recovery-code-input {
    font-family: 'Courier New', monospace;
    letter-spacing: 0.1em;
    font-weight: 500;
    font-size: 0.9375rem;
}

.recovery-warning-box {
    background-color: var(--yellow-50, #fefce8);
    border: 1px solid var(--yellow-200, #fef08a);
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.recovery-warning-box svg {
    flex-shrink: 0;
    color: var(--yellow-800);
    margin-top: 0.125rem;
}

.recovery-warning-title {
    color: var(--yellow-800);
    font-weight: 600;
    font-size: 0.9375rem;
    margin: 0 0 0.25rem 0;
}

.recovery-warning-text {
    color: var(--yellow-800);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

/* Confirmation page specific styles */
.confirmation-icon-wrapper {
    width: 5rem;
    height: 5rem;
    background-color: var(--green-50);
    border: 1.5px solid var(--green-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.confirmation-icon {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--green-600);
}

.confirmation-card {
    background-color: white;
    border: 1px solid var(--gray-200);
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    text-align: left;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.confirmation-card-title {
    color: var(--gray-900);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
}

.confirmation-steps {
    list-style: none;
    padding: 0;
    margin: 0;
}

.confirmation-steps li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.confirmation-steps li:last-child {
    margin-bottom: 0;
}

.step-number {
    flex-shrink: 0;
    width: 1.75rem;
    height: 1.75rem;
    background-color: var(--green-600);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.step-text {
    color: var(--gray-700);
    font-size: 0.9375rem;
    line-height: 1.75rem;
}

.password-requirements {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0 0;
}

.password-requirements li {
    color: var(--gray-700);
    font-size: 0.875rem;
    line-height: 1.5;
    padding-left: 1.25rem;
    position: relative;
    margin-bottom: 0.375rem;
}

.password-requirements li:last-child {
    margin-bottom: 0;
}

.password-requirements li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--green-600);
    font-weight: 700;
}