:root {
    --bubble-auth-bg: #0d081e;
    --bubble-auth-soft: #150e2e;
    --bubble-auth-border: #3b2a70;
    --bubble-auth-text: #eef1ff;
    --bubble-auth-dim: #9aa3c7;
    --bubble-auth-primary: #7c5cff;
    --bubble-auth-primary-2: #5a3df5;
    --bubble-auth-link: #00c2ff;
    --bubble-auth-danger: #ff5470;
    --bubble-auth-background: url("../bubble/landing/backgroundmb-light.webp");
    --bubble-auth-overlay: linear-gradient(180deg, rgba(28, 12, 48, .12) 0%, rgba(28, 12, 48, .28) 100%);
    --bubble-auth-font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (min-width: 768px) {
    :root { --bubble-auth-background: url("../bubble/landing/backgroundpc-light.webp"); }
}

*,
*::before,
*::after { box-sizing: border-box; }

html,
body { min-height: 100%; }

body.bubble-auth-body {
    margin: 0;
    min-height: 100vh;
    color: var(--bubble-auth-text);
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(168, 85, 247, .22), transparent 60%),
        radial-gradient(900px 500px at -10% 30%, rgba(216, 74, 255, .12), transparent 55%),
        var(--bubble-auth-bg);
    font-family: var(--bubble-auth-font);
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

.bubble-auth-body a {
    color: var(--bubble-auth-link);
    text-decoration: none;
}

.bubble-auth-shell {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

.bubble-auth-shell::before {
    position: fixed;
    inset: 0;
    z-index: 0;
    content: "";
    pointer-events: none;
    background: var(--bubble-auth-overlay), var(--bubble-auth-background) center top / cover no-repeat;
}

.bubble-auth-shell > * {
    position: relative;
    z-index: 1;
}

.bubble-auth-page {
    display: flex;
    flex: 1 1 0%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 22px;
    min-width: 0;
    padding: calc(32px + env(safe-area-inset-top, 0px)) 16px calc(32px + env(safe-area-inset-bottom, 0px));
}

.bubble-auth-logo {
    display: block;
    flex: 0 0 auto;
}

.bubble-auth-logo img {
    display: block;
    width: auto;
    height: 84px;
    filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .55));
}

.bubble-auth-card {
    width: 100%;
    max-width: 420px;
    padding: 24px;
    border: 1px solid rgba(216, 74, 255, .28);
    border-radius: 14px;
    background: rgba(24, 13, 46, .85);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 32px rgba(140, 60, 220, .22);
}

.bubble-auth-card h1 {
    margin: 0 0 6px;
    color: var(--bubble-auth-text);
    font-size: 1.6rem;
    font-weight: 700;
    line-height: normal;
}

.bubble-auth-muted {
    margin: 0 0 24px;
    color: var(--bubble-auth-dim);
    font-size: .95rem;
    line-height: normal;
}

.bubble-auth-status {
    margin: -10px 0 16px;
    color: #00e5a8;
    font-size: .85rem;
}

.bubble-input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
}

.bubble-auth-input {
    display: block;
    width: 100%;
    min-width: 0;
    height: 51px;
    padding: 13px 14px;
    border: 1px solid var(--bubble-auth-border);
    border-radius: 10px;
    outline: none;
    color: var(--bubble-auth-text);
    background: var(--bubble-auth-soft);
    font-family: var(--bubble-auth-font);
    font-size: 17px;
    line-height: normal;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.bubble-auth-input::placeholder {
    color: rgba(154, 163, 199, .66);
    opacity: 1;
}

.bubble-auth-input:focus {
    border-color: var(--bubble-auth-primary);
    box-shadow: 0 0 0 3px rgba(124, 92, 255, .14);
}

.bubble-auth-input.has-error { border-color: var(--bubble-auth-danger); }

.bubble-password-field { position: relative; }
.bubble-password-field .bubble-auth-input { padding-right: 46px; }

.bubble-input-eye {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 100%;
    padding: 0;
    border: 0;
    color: var(--bubble-auth-dim);
    background: transparent;
    cursor: pointer;
    transition: color .15s ease;
}

.bubble-input-eye:hover { color: var(--bubble-auth-text); }
.bubble-eye-closed { display: none; }
.bubble-input-eye.is-showing .bubble-eye-open { display: none; }
.bubble-input-eye.is-showing .bubble-eye-closed { display: block; }

.bubble-input-error {
    color: var(--bubble-auth-danger);
    font-size: .8rem;
    line-height: 1.3;
}

.bubble-auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 13px 26px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(135deg, var(--bubble-auth-primary), var(--bubble-auth-primary-2));
    box-shadow: 0 8px 24px rgba(124, 92, 255, .4);
    font-family: var(--bubble-auth-font);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .04em;
    line-height: normal;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.bubble-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 11px 30px rgba(124, 92, 255, .5);
}

.bubble-auth-submit:active { transform: translateY(0); }

.bubble-auth-switch {
    margin: 18px 0 0;
    color: var(--bubble-auth-dim);
    text-align: center;
    font-size: .9rem;
    line-height: normal;
}

.bubble-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 460px) {
    .bubble-auth-page {
        gap: 18px;
        justify-content: center;
        padding-right: 14px;
        padding-left: 14px;
    }

    .bubble-auth-logo img { height: 76px; }
    .bubble-auth-card { padding: 22px 20px; }
    .bubble-auth-card h1 { font-size: 1.5rem; }
    .bubble-auth-muted { font-size: .9rem; }
    .bubble-auth-input { font-size: 16px; }
}

@media (max-height: 610px) {
    .bubble-auth-page {
        justify-content: flex-start;
        gap: 14px;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .bubble-auth-logo img { height: 64px; }
}
