/* PETRA login / auth screens — static CSS, no Vite */
.petra-login-page {
    font-family: 'Inter', system-ui, sans-serif;
    margin: 0;
    min-height: 100dvh;
    color: #0f172a;
    position: relative;
}

.petra-login-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(165deg, #ddd6fe 0%, #e9d5ff 40%, #bfdbfe 100%);
}

.petra-login-tagline {
    position: relative;
    z-index: 1;
    text-align: center;
    margin: 0;
    padding: 1.25rem 1rem 0.5rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
}

.petra-login-shell {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0.5rem 1rem 2rem;
    box-sizing: border-box;
}

.petra-login-card {
    width: 100%;
    max-width: 22rem;
    background: #fff;
    border-radius: 1.25rem;
    padding: 2rem 1.75rem 1.75rem;
    box-shadow: 0 8px 32px rgba(30, 64, 175, 0.12);
    box-sizing: border-box;
}

.petra-login-logo {
    display: block;
    margin: 0 auto 1.5rem;
    max-width: 100%;
    height: auto;
}

.petra-login-title {
    margin: 0 0 1.25rem;
    font-size: 1.35rem;
    font-weight: 600;
    text-align: center;
    color: #1e293b;
}

.petra-login-lead {
    margin: -0.5rem 0 1.25rem;
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
    line-height: 1.45;
}

.petra-login-flash {
    font-size: 0.875rem;
    margin: 0 0 1rem;
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    text-align: center;
}

.petra-login-flash--ok {
    background: #ecfdf5;
    color: #047857;
}

.petra-login-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.petra-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.petra-field-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #475569;
}

.petra-field input {
    border: none;
    border-bottom: 1px solid #cbd5e1;
    padding: 0.45rem 0;
    font-size: 1rem;
    font-family: inherit;
    background: transparent;
    outline: none;
}

.petra-field input:focus {
    border-bottom-color: #1e3a8a;
}

.petra-field-error {
    font-size: 0.8rem;
    color: #dc2626;
}

.petra-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #64748b;
    cursor: pointer;
}

.petra-remember input {
    width: 1rem;
    height: 1rem;
}

.petra-login-actions {
    display: flex;
    gap: 0.65rem;
    margin-top: 0.25rem;
}

.petra-login-actions--single {
    flex-direction: column;
}

.petra-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0.75rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    border: none;
    border-radius: 0.35rem;
    cursor: pointer;
    text-decoration: none;
    box-sizing: border-box;
}

.petra-btn-primary {
    background: #1e3a8a;
    color: #fff;
}

.petra-btn-primary:hover {
    filter: brightness(1.08);
}

.petra-btn-block {
    flex: none;
    width: 100%;
}

.petra-login-footer {
    margin: 1.5rem 0 0;
    text-align: center;
    font-size: 0.9rem;
    color: #64748b;
}

.petra-login-footer a {
    color: #1e3a8a;
    text-decoration: none;
}

.petra-login-footer a:hover {
    text-decoration: underline;
}

.petra-recaptcha {
    margin: 0.25rem 0 0.5rem;
}

.petra-recaptcha .g-recaptcha > div {
    margin: 0 auto;
}

.petra-phone-row {
    display: flex;
    gap: 0.5rem;
    align-items: stretch;
    flex-wrap: wrap;
}

.petra-phone-country {
    flex: 1 1 11rem;
    min-width: 0;
    padding: 0.5rem 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    font-family: inherit;
    font-size: 0.88rem;
    background: #f8fafc;
}

.petra-phone-number {
    flex: 1 1 8rem;
    min-width: 0;
    padding: 0.5rem 0.5rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    font-family: inherit;
    font-size: 1rem;
    background: #fff;
}

.petra-phone-number:focus {
    outline: none;
    border-color: #1e3a8a;
}

.petra-guest-locale {
    margin: 0 0 1rem;
}

.petra-guest-locale-label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #475569;
}

.petra-guest-locale-select {
    width: 100%;
    padding: 0.5rem 0.65rem;
    border-radius: 0.5rem;
    border: 1px solid #cbd5e1;
    font-family: inherit;
    font-size: 0.95rem;
    background: #f8fafc;
}

.petra-field select {
    border: none;
    border-bottom: 1px solid #cbd5e1;
    padding: 0.45rem 0;
    font-size: 1rem;
    font-family: inherit;
    background: transparent;
    outline: none;
}

.petra-field select:focus {
    border-bottom-color: #1e3a8a;
}

@media (max-width: 380px) {
    .petra-login-actions:not(.petra-login-actions--single) {
        flex-direction: column;
    }

    .petra-btn {
        width: 100%;
    }
}

@media (min-width: 768px) {
    .petra-login-shell {
        padding: 1rem 1.5rem 3rem;
    }

    .petra-login-card {
        max-width: 28rem;
        padding: 2.25rem 2rem 2rem;
    }
}

@media (min-width: 1024px) {
    .petra-login-card {
        max-width: 32rem;
    }
}
