/* SkillsDecoder — "New Horizons" Design
   A warm, empowering aesthetic for fresh starts */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400&display=swap');

:root {
    /* Core palette - matches SkillsDecoder logo */
    --primary: #1e3a5f;          /* Dark navy from "Skills" text */
    --primary-light: #2a4d7a;
    --primary-dark: #142942;

    /* Accent - golden opportunity */
    --accent: #d97706;
    --accent-light: #f59e0b;
    --accent-glow: rgba(217, 119, 6, 0.15);

    /* Secondary - colors from logo */
    --blue: #1a6bdd;             /* Royal blue from key icon */
    --blue-light: #4d8fe8;
    --teal: #2eb67d;             /* Teal green from "Decoder" text */
    --teal-light: #3ed68d;

    /* Success & feedback */
    --success: #2eb67d;          /* Using brand teal */
    --success-light: #3ed68d;
    --danger: #dc2626;
    --warning: #f59e0b;

    /* Neutrals - warm undertones */
    --bg-cream: #faf8f5;
    --bg-warm: #f5f1eb;
    --white: #ffffff;
    --border: #e8e4dd;
    --border-dark: #d4cfc6;

    /* Text */
    --text-primary: #1a202c;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-inverse: #ffffff;

    /* Effects */
    --shadow-sm: 0 1px 3px rgba(26, 54, 93, 0.08);
    --shadow-md: 0 4px 12px rgba(26, 54, 93, 0.1);
    --shadow-lg: 0 8px 30px rgba(26, 54, 93, 0.12);
    --shadow-glow: 0 0 40px rgba(217, 119, 6, 0.2);

    /* Spacing & sizing */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-medium: 0.25s ease;
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-cream);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    line-height: 1.3;
    color: var(--primary);
}

/* App Container */
.app-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* ============================================
   HEADER - Floating nav style
   ============================================ */
.header {
    background: var(--white);
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
}

.header-logo {
    height: 65px;
    width: auto;
    transition: transform var(--transition-medium);
}

.header-logo:hover {
    transform: scale(1.02);
}

.nav-links {
    display: flex;
    gap: 0.25rem;
    background: var(--bg-warm);
    padding: 0.35rem;
    border-radius: var(--radius-lg);
}

.nav-link {
    padding: 0.6rem 1.25rem;
    text-decoration: none;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.9rem;
    transition: all var(--transition-fast);
    position: relative;
}

.nav-link:hover {
    color: var(--primary);
    background: var(--white);
}

.nav-link.active {
    background: var(--primary);
    color: var(--text-inverse);
    box-shadow: var(--shadow-sm);
}

.nav-logout {
    color: var(--text-muted);
    margin-left: 0.5rem;
}

.nav-logout:hover {
    color: var(--danger);
    background: rgba(220, 38, 38, 0.08);
}

/* Organization Banner */
.org-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: var(--text-inverse);
    text-align: center;
    padding: 0.6rem 1rem;
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.main-content {
    flex: 1;
    padding: 2.5rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.page {
    display: none;
    animation: slideUp 0.5s ease;
}

.page.active {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   HOME PAGE - Hero Section
   ============================================ */
.hero-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    margin-bottom: 3rem;
}

.org-logo-area {
    flex-shrink: 0;
}

.org-logo-area img {
    max-width: 180px;
    max-height: 180px;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.hero {
    text-align: center;
    padding: 3rem 3rem 3.5rem;
    background: linear-gradient(145deg, var(--primary) 0%, var(--primary-light) 50%, var(--blue) 100%);
    color: var(--text-inverse);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 700px;
    width: 100%;
}

/* Decorative elements */
.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 60%;
    height: 200%;
    background: radial-gradient(ellipse, rgba(217, 119, 6, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-light), var(--accent));
}

.hero-logo {
    max-width: 320px;
    height: auto;
    margin: 0 auto 1rem;
    display: block;
    position: relative;
    z-index: 1;
    filter: brightness(0) invert(1);
}

.hero-tagline {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.6rem;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 0.75rem;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.hero p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 550px;
    margin: 0 auto 2rem;
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.loaded-profile-notice {
    font-size: 1rem;
    margin-bottom: 1.25rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-md);
    display: inline-block;
}

.hero-button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

/* ============================================
   FEATURE CARDS
   ============================================ */
.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    cursor: pointer;
    border: 1px solid var(--border);
    transition: all var(--transition-medium);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    transform: scaleX(0);
    transition: transform var(--transition-medium);
}

.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: 2.75rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.8rem 1.75rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.4);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    background: var(--white);
    color: var(--text-primary);
    border: 2px solid var(--border-dark);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-warm);
}

.btn-danger {
    background: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background: #b91c1c;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.05rem;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ============================================
   FORM CONTAINER
   ============================================ */
.form-container {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    position: relative;
    border: 1px solid var(--border);
}

/* ============================================
   PROGRESS STEPS - Journey visualization
   ============================================ */
.form-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-cream) 100%);
    border-radius: var(--radius-lg);
    position: relative;
}

/* Progress line */
.form-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 4rem;
    right: 4rem;
    height: 2px;
    background: var(--border-dark);
    transform: translateY(-50%);
    z-index: 0;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    z-index: 1;
    transition: all var(--transition-medium);
}

.progress-step:not(.active):not(.completed) {
    opacity: 0.5;
}

.step-number {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--white);
    border: 3px solid var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-muted);
    transition: all var(--transition-medium);
    box-shadow: var(--shadow-sm);
}

.progress-step.active .step-number {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(26, 54, 93, 0.2);
    transform: scale(1.1);
}

.progress-step.completed .step-number {
    background: var(--success);
    border-color: var(--success);
    color: var(--white);
}

.progress-step.completed .step-number::after {
    content: '\2713';
    font-size: 1.1rem;
}

.progress-step.completed .step-number span {
    display: none;
}

.step-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-align: center;
}

.progress-step.active .step-label {
    color: var(--primary);
    font-weight: 600;
}

/* ============================================
   FORM STEPS
   ============================================ */
.form-step {
    display: none;
    animation: fadeSlide 0.4s ease;
}

.form-step.active {
    display: block;
}

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.form-step h2 {
    font-size: 1.75rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
    position: relative;
}

.form-step h2::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: var(--accent);
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.6rem;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.85rem 1.15rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.form-group input:hover,
.form-group textarea:hover,
.form-group select:hover {
    border-color: var(--border-dark);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 54, 93, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.6;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.form-help {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.6rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    font-size: 0.95rem;
}

.checkbox-item:hover {
    background: var(--bg-warm);
    border-color: var(--primary);
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    cursor: pointer;
}

/* ============================================
   EXPERIENCE SECTIONS
   ============================================ */
.experience-section {
    background: linear-gradient(135deg, var(--bg-warm) 0%, var(--bg-cream) 100%);
    padding: 1.75rem;
    border-radius: var(--radius-lg);
    margin-bottom: 1.75rem;
    border: 1px solid var(--border);
}

.experience-section h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.experience-section h3::before {
    content: '';
    width: 4px;
    height: 1.2em;
    background: var(--accent);
    border-radius: 2px;
}

.work-entry,
.education-entry {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   FORM NAVIGATION
   ============================================ */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

/* ============================================
   REVIEW SUMMARY
   ============================================ */
.review-summary {
    background: var(--bg-warm);
    padding: 2rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    border: 1px solid var(--border);
}

.review-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.review-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.review-section h4 {
    font-family: 'DM Sans', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.review-section p {
    margin-bottom: 0.35rem;
    color: var(--text-secondary);
}

/* Save Profile Option */
.save-profile-option {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.06) 0%, rgba(217, 119, 6, 0.06) 100%);
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-lg);
    margin-bottom: 2rem;
    border-left: 4px solid var(--accent);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    cursor: pointer;
    font-weight: 600;
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.consent-text {
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-size: 0.85rem;
    opacity: 0.8;
}

/* ============================================
   LOADING OVERLAY
   ============================================ */
.loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.97);
    border-radius: var(--radius-xl);
    z-index: 100;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.loading-overlay.active {
    display: flex;
}

.loading-content {
    text-align: center;
}

.spinner {
    width: 56px;
    height: 56px;
    border: 4px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1.25rem;
}

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

.loading-content p {
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

.loading-subtext {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-top: 0.5rem;
    font-weight: 400;
}

/* ============================================
   RESULTS CONTAINER
   ============================================ */
.results-container {
    display: none;
    text-align: center;
    animation: celebrateIn 0.6s ease;
}

.results-container.active {
    display: block;
}

@keyframes celebrateIn {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    50% {
        transform: scale(1.02);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.results-container h2 {
    color: var(--success);
    margin-bottom: 2.5rem;
    font-size: 2rem;
}

.document-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
}

.document-card {
    background: var(--white);
    padding: 2rem 1.5rem;
    border-radius: var(--radius-lg);
    border: 2px solid var(--border);
    transition: all var(--transition-medium);
}

.document-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.document-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.document-card h3 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.document-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.results-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ============================================
   PROFILES PAGE
   ============================================ */
.page-description {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1.05rem;
}

.profiles-list {
    display: grid;
    gap: 1rem;
}

.profile-card {
    background: var(--white);
    padding: 1.5rem 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    transition: all var(--transition-fast);
}

.profile-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.profile-info h3 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    margin-bottom: 0.35rem;
    color: var(--primary);
}

.profile-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.profile-actions {
    display: flex;
    gap: 0.6rem;
}

.no-profiles {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px dashed var(--border);
}

.no-profiles p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* ============================================
   SETTINGS PAGE
   ============================================ */
.settings-form {
    max-width: 550px;
}

.settings-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 2px solid var(--border);
}

.settings-section h3 {
    margin-bottom: 0.75rem;
}

.logo-upload {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.logo-preview {
    width: 160px;
    height: 90px;
    border: 2px dashed var(--border-dark);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    overflow: hidden;
    background: var(--bg-warm);
}

.logo-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.color-picker {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.color-picker input[type="color"] {
    width: 56px;
    height: 44px;
    padding: 2px;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    cursor: pointer;
    background: var(--white);
}

.color-picker input[type="text"] {
    width: 110px;
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--white);
    padding: 1.25rem 2rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--border);
}

/* ============================================
   LOGIN SCREEN
   ============================================ */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, var(--primary-dark) 0%, var(--primary) 40%, var(--blue) 100%);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Decorative background */
.login-screen::before {
    content: '';
    position: absolute;
    top: -30%;
    right: -20%;
    width: 80%;
    height: 160%;
    background: radial-gradient(ellipse, rgba(217, 119, 6, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.login-screen::after {
    content: '';
    position: absolute;
    bottom: -20%;
    left: -10%;
    width: 60%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.login-container {
    background: var(--white);
    padding: 3rem 3.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(0, 0, 0, 0.15);
    max-width: 460px;
    width: 100%;
    text-align: center;
    position: relative;
    z-index: 1;
    animation: scaleIn 0.5s ease;
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.login-logo {
    max-width: 320px;
    height: auto;
    margin: -30px auto 0;
    display: block;
}

.login-tagline {
    font-family: 'Fraunces', Georgia, serif;
    font-size: 1.15rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.login-form {
    text-align: left;
}

.login-form .form-group {
    margin-bottom: 1.75rem;
}

.login-form input {
    text-align: center;
    font-size: 1.15rem;
    letter-spacing: 1.5px;
    font-weight: 500;
    padding: 1rem;
}

.login-btn {
    width: 100%;
    margin-top: 0.5rem;
    padding: 1rem;
    font-size: 1.05rem;
}

.login-error {
    color: var(--danger);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 1rem;
    min-height: 1.5rem;
    text-align: center;
}

.login-help {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-cream);
}

::-webkit-scrollbar-thumb {
    background: var(--border-dark);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .features,
    .document-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }

    .header-logo {
        height: 80px;
        margin: -20px 0;
    }

    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        width: 100%;
    }

    .nav-link {
        padding: 0.5rem 0.9rem;
        font-size: 0.85rem;
    }

    .main-content {
        padding: 1.25rem;
    }

    .hero {
        padding: 2rem 1.5rem 2.5rem;
    }

    .hero-logo {
        max-width: 220px;
        margin: 0 auto 0.75rem;
    }

    .hero-tagline {
        font-size: 1.25rem;
    }

    .form-container {
        padding: 1.5rem;
    }

    .form-progress {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem;
    }

    .form-progress::before {
        display: none;
    }

    .step-label {
        display: none;
    }

    .form-navigation {
        flex-direction: column;
        gap: 1rem;
    }

    .form-navigation .btn {
        width: 100%;
    }

    .login-container {
        padding: 2rem 1.5rem;
    }
}
