:root {
    --navy-blue: #0a2f5c;
    --off-white: #f5f5f7;
    --card-white: #ffffff;
    --text-gray: #6c757d;
    --button-gray: #9ca3af;
    --button-orange: #e6943e;
    --link-blue: #3b82f6;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    background: var(--off-white); /* Safari address bar at bottom sees this - must be white */
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    position: fixed;
    width: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--off-white); /* White by default - ensures bottom is white */
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
}

/* Blue background - top portion ONLY */
body::before {
    content: '';
    position: fixed;
    top: -1000px; /* Extends above viewport for status bar */
    left: 0;
    right: 0;
    height: 1410px; /* Covers status bar + top content until middle of card */
    background: var(--navy-blue);
    z-index: -10; /* Behind content */
}

.app-container {
    height: 100vh;
    max-height: 100vh;
    display: grid;
    grid-template-rows: 1fr auto;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.content-wrapper {
    padding: 0 1.25rem;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    flex: 1;
    min-height: 0;
}

.header-section {
    text-align: center;
    color: white;
    margin-bottom: 1.25rem;
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.125rem;
    transform: rotate(45deg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.user-icon {
    width: 30px;
    height: 30px;
    color: var(--navy-blue);
    transform: rotate(-45deg);
}

.main-heading {
    font-size: 1.625rem;
    font-weight: 600;
    margin-bottom: 0.625rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.subheading {
    font-size: 0.9375rem;
    font-weight: 400;
    opacity: 0.92;
    line-height: 1.5;
    padding: 0 0.5rem;
}

.card-section {
    margin-bottom: 1.5rem;
}

.form-card {
    background: var(--card-white);
    border-radius: 16px;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.1);
}

.dob-input {
    font-size: 1.0625rem;
    padding: 0.8125rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 1.125rem;
    transition: all 0.3s ease;
}

.dob-input:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: none;
}

.dob-input::placeholder {
    color: #9ca3af;
}

.submit-btn {
    width: 100%;
    padding: 0.8125rem;
    font-size: 1.0625rem;
    font-weight: 400;
    border-radius: 10px;
    border: none;
    background: var(--button-gray);
    color: white;
    cursor: not-allowed;
    transition: all 0.3s ease;
    letter-spacing: -0.005em;
}

.submit-btn:disabled {
    background: var(--button-gray);
    opacity: 0.7;
}

.submit-btn:not(:disabled) {
    background: var(--button-orange);
    cursor: pointer;
}

.submit-btn:not(:disabled):hover {
    background: #d68535;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.footer-section {
    background: transparent;
    padding: 0.5rem 1.25rem 2.5rem;
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}

.footer-text {
    color: var(--text-gray);
    font-size: 0.8125rem;
    line-height: 1.45;
    margin-bottom: 0.875rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--link-blue);
    text-decoration: none;
    font-weight: 400;
    font-size: 0.9375rem;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 0.8;
}

.separator {
    color: var(--text-gray);
}

@media (min-width: 768px) {
    .content-wrapper {
        padding: 3rem 2rem;
        max-width: 540px;
    }

    .icon-wrapper {
        width: 68px;
        height: 68px;
    }

    .user-icon {
        width: 36px;
        height: 36px;
    }

    .main-heading {
        font-size: 1.875rem;
    }

    .subheading {
        font-size: 1rem;
    }

    .card-section {
        margin-bottom: 9.5rem;
    }

    .form-card {
        padding: 2rem 2rem;
    }

    .footer-section {
        max-width: 540px;
        padding: 2.5rem 2rem 3rem;
    }
}

@media (min-width: 1024px) {
    .content-wrapper,
    .footer-section {
        max-width: 600px;
    }
}

