/*
Authentication styles
*/

.flyup-auth-wrap {
    min-height: calc(100vh - 220px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 0 4rem;
}

.flyup-auth-wrap .container {
    display: flex;
    justify-content: center;
}

.flyup-auth-card {
    width: 100%;
    max-width: 520px;
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}

.flyup-auth-card__header {
    margin-bottom: 1.5rem;
    text-align: left;
}

.flyup-auth-card__header h1 {
    margin: 0 0 0.75rem;
}

.flyup-auth-card__header p {
    margin: 0;
    color: var(--text-secondary);
}

.flyup-auth-form .btn {
    width: 100%;
}

@media (max-width: 768px) {
    .flyup-auth-wrap {
        min-height: auto;
        padding: 2rem 0 3rem;
    }

    .flyup-auth-card {
        padding: 1.5rem;
    }
}
/* Login/register refinements */
.flyup-auth-shell {
    width: 100%;
    display: flex;
    justify-content: center;
}

.flyup-auth-alert {
    display: grid;
    gap: .25rem;
    padding: .95rem 1rem;
    margin: 0 0 1rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, .82);
}

.flyup-auth-alert--error {
    border-color: rgba(220, 38, 38, .2);
    background: rgba(254, 242, 242, .9);
    color: #7f1d1d;
}

.flyup-field {
    display: grid;
    gap: .45rem;
    margin-bottom: 1rem;
}

.flyup-field label {
    font-weight: 700;
    color: var(--text-primary);
}

.flyup-field input {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: .9rem 1rem;
    background: rgba(255, 255, 255, .92);
    color: var(--text-primary);
    outline: none;
}

.flyup-field input:focus {
    border-color: rgba(14, 165, 233, .55);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, .12);
}

.flyup-password-field {
    position: relative;
    display: flex;
    align-items: center;
}

.flyup-password-field input {
    padding-right: 6rem;
}

.flyup-password-field button {
    position: absolute;
    right: .45rem;
    border: 0;
    border-radius: 999px;
    padding: .55rem .8rem;
    background: rgba(14, 165, 233, .1);
    color: var(--accent);
    font-weight: 800;
    cursor: pointer;
}

.flyup-auth-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin: .25rem 0 1rem;
    color: var(--text-secondary);
}

.flyup-auth-check {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    cursor: pointer;
}

.flyup-auth-check input {
    width: auto;
}

.flyup-auth-row a,
.flyup-auth-bottom-link a {
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
}

.flyup-auth-submit {
    width: 100%;
    justify-content: center;
    margin-top: .25rem;
}

.flyup-auth-bottom-link {
    margin: 1rem 0 0;
    text-align: center;
    color: var(--text-secondary);
}

@media (max-width: 520px) {
    .flyup-auth-row {
        align-items: flex-start;
        flex-direction: column;
    }
}

.flyup-auth-social {
    margin: 0 0 1rem;
}

.flyup-google-auth-btn {
    width: 100%;
    justify-content: center;
    gap: .75rem;
}

.flyup-google-auth-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    border: 1px solid var(--border);
    font-weight: 800;
}

.flyup-auth-separator {
    position: relative;
    text-align: center;
    margin: 0 0 1rem;
}

.flyup-auth-separator::before {
    content: '';
    position: absolute;
    inset: 50% 0 auto;
    border-top: 1px solid var(--border);
}

.flyup-auth-separator span {
    position: relative;
    display: inline-block;
    padding: 0 .8rem;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: .92rem;
}


/* Step53 phase18g: stable FR/EN auth presentation */
.flyup-login-page,
.flyup-register-page {
    background:
        radial-gradient(circle at 15% 0%, rgba(14,165,233,.12), transparent 32%),
        radial-gradient(circle at 85% 10%, rgba(20,184,166,.14), transparent 34%),
        linear-gradient(180deg, rgba(248,252,255,.92), rgba(240,253,250,.72));
}

.flyup-auth-wrap {
    width: 100%;
}

.flyup-auth-shell {
    width: 100%;
    min-height: min(680px, calc(100vh - 170px));
    align-items: center;
}

.flyup-auth-card {
    width: min(100%, 520px);
    padding: clamp(1.4rem, 3vw, 2.25rem);
    border-radius: 28px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 24px 70px rgba(15,23,42,.12);
    backdrop-filter: blur(16px);
}

.flyup-auth-card__header {
    text-align: center;
}

.flyup-auth-card__header .homepage-hero__eyebrow {
    justify-content: center;
}

.flyup-auth-card__header h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: -.04em;
}

.flyup-auth-card__header p {
    max-width: 42ch;
    margin-inline: auto;
    line-height: 1.6;
}

.flyup-google-auth-btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    color: #111827;
    border-color: rgba(148,163,184,.34);
    font-weight: 800;
    box-shadow: 0 10px 26px rgba(15,23,42,.07);
}

.flyup-google-auth-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 36px rgba(15,23,42,.11);
}

.flyup-google-auth-btn__icon {
    width: 24px;
    height: 24px;
    border: 0;
    background: transparent;
}

.flyup-google-auth-btn__svg {
    width: 24px;
    height: 24px;
    display: block;
}

.flyup-auth-separator {
    margin: 1.1rem 0;
}

.flyup-field {
    gap: .5rem;
}

.flyup-field input {
    min-height: 54px;
    border-radius: 18px;
    font-size: 1rem;
}

.flyup-password-field button {
    min-height: 38px;
    right: .55rem;
}

.flyup-auth-row {
    margin: .6rem 0 1.15rem;
}

.flyup-auth-check input {
    inline-size: 18px;
    block-size: 18px;
}

.flyup-auth-submit {
    min-height: 54px;
    border-radius: 999px;
    font-size: 1rem;
}

@media (max-width: 620px) {
    .flyup-auth-card {
        border-radius: 22px;
    }
}
