:root {
    --primary-color: #60D2A4;
    --secondary-color: #3D88AC;
    --accent-color: #FFCF77;
    --error-color: #E45A53;
    --text-color: #292929;
    --background-color: #F0F2F4;
    --box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Metrophobic', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
}

.mobile-app-banner {
    display: none;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2rem;
}

.logo-container {
    margin-bottom: 0.2rem;
    opacity: 0;
    transform: translateY(-20px);
    animation: fadeInDown 0.8s ease forwards;
}

.logo {
    max-width: 150px;
    height: auto;
}

.content-box {
    background: white;
    padding: 2rem 3rem;
    border-radius: 12px;
    box-shadow: var(--box-shadow);
    max-width: 600px;
    width: 100%;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.language-switcher {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}

.language-switcher__label {
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.language-switcher__link {
    color: var(--secondary-color);
    text-decoration: none;
    border: 1px solid rgba(61, 136, 172, 0.3);
    border-radius: 999px;
    padding: 0.2rem 0.75rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.language-switcher__link:hover,
.language-switcher__link.is-active {
    background-color: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

h1 {
    font-family: 'Oswald', sans-serif;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

p {
    margin-bottom: 2rem;
    color: var(--text-color);
    font-size: 1.1rem;
}

.code-input-container {
    margin-bottom: 2rem;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    max-width: 300px;
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
}

input[type="text"]:not(.hidden),
input[type="email"]:not(.hidden) {
    display: block;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder {
    text-transform: none;
}

input[type="text"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(96, 210, 164, 0.1);
}

input.invalid {
    border-color: var(--error-color);
    background-color: rgba(228, 90, 83, 0.05);
}

input.invalid:focus {
    border-color: var(--error-color);
    box-shadow: 0 0 0 3px rgba(228, 90, 83, 0.1);
}

.error-message {
    color: var(--error-color);
    margin-top: 0.5rem;
    min-height: 20px;
    font-size: 0.9rem;
}

.primary-button, .secondary-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 6px;
    font-family: 'Oswald', sans-serif;
    font-size: 1.1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 0.5rem;
    min-width: 200px;
}

.primary-button {
    background-color: var(--primary-color);
    color: white;
}

.secondary-button {
    background-color: white;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.primary-button:hover, .secondary-button:hover {
    transform: translateY(-2px);
    box-shadow: var(--box-shadow);
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.divider span {
    padding: 0 1rem;
    color: #666;
    font-size: 0.9rem;
}

.other-options {
    margin-top: 1rem;
}

.other-options-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.other-options-link:hover {
    opacity: 1;
    text-decoration: underline;
}

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

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

@media (max-width: 768px) {
    .mobile-app-banner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 1rem;
        width: 100%;
        padding: calc(1rem + env(safe-area-inset-top)) 1rem 1rem;
        overflow: hidden;
        background:
            radial-gradient(circle at 8% 0%, rgba(255, 207, 119, 0.2), transparent 34%),
            radial-gradient(circle at 92% 100%, rgba(96, 210, 164, 0.16), transparent 36%),
            linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
        border-bottom: 1px solid rgba(61, 136, 172, 0.16);
        box-shadow: 0 4px 12px rgba(41, 41, 41, 0.06);
    }

    .mobile-app-banner__copy {
        display: flex;
        flex-direction: column;
        min-width: 0;
        text-align: left;
    }

    .mobile-app-banner__title {
        font-family: 'Metrophobic', sans-serif;
        font-size: 1.02rem;
        font-weight: 700;
        line-height: 1.2;
        color: var(--text-color);
    }

    .mobile-app-banner__spectrum {
        display: flex;
        gap: 3px;
        width: min(100%, 152px);
        margin-top: 0.4rem;
    }

    .mobile-app-banner__spectrum-segment {
        flex: 1;
        height: 4px;
        border-radius: 999px;
    }

    .mobile-app-banner__spectrum-segment--yellow {
        background: var(--accent-color);
    }

    .mobile-app-banner__spectrum-segment--red {
        background: var(--error-color);
    }

    .mobile-app-banner__spectrum-segment--blue {
        background: var(--secondary-color);
    }

    .mobile-app-banner__spectrum-segment--green {
        background: var(--primary-color);
    }

    .mobile-app-banner__description {
        margin-top: 0.4rem;
        font-size: 0.76rem;
        line-height: 1.3;
        color: #666;
    }

    .mobile-app-banner__button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.4rem;
        min-height: 44px;
        padding: 0.65rem 0.9rem;
        border: 1px solid rgba(39, 135, 96, 0.22);
        border-radius: 10px;
        background: linear-gradient(135deg, var(--primary-color), #83ddb9);
        box-shadow: 0 5px 12px rgba(49, 158, 114, 0.24);
        color: #173b2e;
        font-family: 'Metrophobic', sans-serif;
        font-size: 0.86rem;
        font-weight: 700;
        line-height: 1;
        text-decoration: none;
        white-space: nowrap;
    }

    .mobile-app-banner__button:active {
        transform: translateY(1px);
        box-shadow: 0 2px 6px rgba(49, 158, 114, 0.2);
    }

    .mobile-app-banner__button:focus-visible {
        outline: 3px solid var(--secondary-color);
        outline-offset: 2px;
    }

    .mobile-app-banner__apple-icon {
        flex-shrink: 0;
    }

    .content-box {
        padding: 2rem;
        margin: 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }

    .logo {
        max-width: 80px;
    }

    .language-switcher {
        justify-content: center;
    }

    .app-promo-banner,
    .promo-divider {
        display: none;
    }
}

@media (max-width: 350px) {
    .mobile-app-banner {
        gap: 0.55rem;
        padding-right: 0.75rem;
        padding-left: 0.75rem;
    }

    .mobile-app-banner__description {
        display: none;
    }

    .mobile-app-banner__button {
        padding-right: 0.65rem;
        padding-left: 0.65rem;
    }
}

.hidden {
    display: none;
}

.instructions-text {
    text-align: left;
    margin: 2rem 0;
    padding: 1.5rem;
    background-color: var(--background-color);
    border-radius: 8px;
}

.instructions-text p {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    line-height: 1.6;
}

.instructions-text p:last-child {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .instructions-text {
        padding: 1rem;
    }

    .instructions-text p {
        font-size: 1rem;
    }
}

/* iOS App Promotional Banner */
.app-promo-banner {
    background: linear-gradient(135deg, #f8f9ff 0%, #fff8f0 100%);
    border: 2px solid var(--accent-color);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0.5rem 0 1.5rem 0;
    position: relative;
    text-align: center;
}

.app-promo-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-color);
    color: var(--text-color);
    font-family: 'Oswald', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 1rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.app-promo-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.4rem;
    color: var(--text-color);
    margin: 0.5rem 0 0.25rem 0;
}

.app-promo-subtitle {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
}

.app-promo-subtitle strong {
    color: var(--text-color);
}

.app-promo-features {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.app-promo-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 0.6rem 0.75rem;
}

.app-promo-feature-icon {
    font-size: 1.25rem;
    line-height: 1;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.app-promo-feature-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    text-align: left;
}

.app-promo-feature-text strong {
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    color: var(--text-color);
}

.app-promo-feature-text span {
    font-size: 0.85rem;
    color: #666;
}

.app-promo-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #000;
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-family: 'Oswald', sans-serif;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.app-promo-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.app-promo-button .apple-icon {
    flex-shrink: 0;
}

.app-promo-footnote {
    font-size: 0.8rem;
    color: #888;
    margin: 0.75rem 0 0 0;
}

@media (max-width: 768px) {
    .app-promo-banner {
        padding: 1.25rem 1rem;
    }

    .app-promo-title {
        font-size: 1.2rem;
    }

    .app-promo-subtitle {
        font-size: 0.9rem;
    }

    .app-promo-feature-text strong {
        font-size: 0.9rem;
    }

    .app-promo-feature-text span {
        font-size: 0.8rem;
    }
} 
