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

body.team-login-noheader {
    font-family: 'Jost', sans-serif;
    height: 100vh;
    height: 100svh;
    height: 100dvh;
    width: 100vw;
    width: 100svw;
    width: 100dvw;

    display: flex;
    align-items: center;
    justify-content: center;

    background-image: linear-gradient(135deg, #0f0f1a 0%, #1a1a2e 50%, #16213e 100%);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;

    overflow: hidden;
    position: relative;
    padding: 40px 16px;
    color: #e2e8f0;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: pulse 8s ease-in-out infinite;
    pointer-events: none;
}
.orb-1 { width: 420px; height: 420px; background: linear-gradient(135deg, #6366f1, #8b5cf6); top: -120px; left: -120px; }
.orb-2 { width: 320px; height: 320px; background: linear-gradient(135deg, #06b6d4, #3b82f6); bottom: -80px; right: -80px; animation-delay: 2s; }
.orb-3 { width: 220px; height: 220px; background: linear-gradient(135deg, #ec4899, #8b5cf6); top: 55%; right: 8%; animation-delay: 4s; }

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.35; }
    50% { transform: scale(1.15); opacity: 0.6; }
}

.particles {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px; height: 4px;
    background: rgba(99, 102, 241, 0.6);
    border-radius: 50%;
    animation: float 15s infinite;
}

.particle:nth-child(1) { left: 10%; animation-delay: 0s; animation-duration: 20s; }
.particle:nth-child(2) { left: 20%; animation-delay: 2s; animation-duration: 18s; }
.particle:nth-child(3) { left: 30%; animation-delay: 4s; animation-duration: 22s; }
.particle:nth-child(4) { left: 40%; animation-delay: 1s; animation-duration: 16s; }
.particle:nth-child(5) { left: 50%; animation-delay: 3s; animation-duration: 19s; }
.particle:nth-child(6) { left: 60%; animation-delay: 5s; animation-duration: 21s; }
.particle:nth-child(7) { left: 70%; animation-delay: 0.5s; animation-duration: 17s; }
.particle:nth-child(8) { left: 80%; animation-delay: 2.5s; animation-duration: 23s; }
.particle:nth-child(9) { left: 90%; animation-delay: 4.5s; animation-duration: 15s; }
.particle:nth-child(10) { left: 15%; animation-delay: 1.5s; animation-duration: 20s; }

@keyframes float {
    0% { transform: translateY(110vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-110vh) scale(1); opacity: 0; }
}

.wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 560px;
    text-align: center;
}

.card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 28px;
    backdrop-filter: blur(14px);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
}

.icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 14px;
    display: block;
    opacity: 0.95;
    animation: iconSpin 8s linear infinite;
}

@keyframes iconSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

h1 {
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 800;
    background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0px;
}

.subtitle {
    color: #94a3b8;
    line-height: 1.65;
    margin-bottom: 18px;
    font-size: 1rem;
}

.alert {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fecaca;
    padding: 12px 14px;
    border-radius: 14px;
    margin: 0 0 16px;
    text-align: left;
    font-size: 0.95rem;
    line-height: 1.3rem;
}

#team-loginform { text-align: left; margin-top: 6px; }
#team-loginform p { margin-bottom: 14px; }
#team-loginform label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #e2e8f0;
    font-size: 0.95rem;
}

#team-loginform .input {
    width: 100%;
    padding: 12px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18);
    background: rgba(15, 15, 26, 0.55);
    color: #e2e8f0;
    outline: none;
}

#team-loginform .input:focus {
    border-color: rgba(99,102,241,0.7);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.15);
}

#team-loginform .forgetmenot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 2px;
}

#team-loginform .forgetmenot label {
    margin: 0;
    font-weight: 500;
    color: #cbd5e1;
    font-size: 0.95rem;
}

#team-loginform .button-primary,
.secure-passkey-login-short-code-wrapper .login-via-passkey {
    width: 100%;
    padding: 12px 14px !important;
    border-radius: 12px !important;
    border: none !important;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    color: #fff !important;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.35);
    transition: transform .2s ease, box-shadow .2s ease;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    height: unset;
}

#team-loginform .button-primary:hover,
.secure-passkey-login-short-code-wrapper .login-via-passkey: hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 54px rgba(99, 102, 241, 0.45);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 12px;
}

.links {
    margin-top: 14px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

.links a {
    color: #a5b4fc;
    text-decoration: none;
}

.links a:hover {
    color: white;
    text-decoration: none !important;
}

.mini {
    margin-top: 16px;
    color: #64748b;
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 520px) {
    .card { padding: 22px; }
    .icon { width: 48px; height: 48px; }
}

.team-field {
    position: relative;
    margin-top: 6px;
}

#team-loginform label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: rgba(226,232,240,0.92);
    letter-spacing: 0.2px;
}

#team-loginform .input {
    width: 100%;
    height: 48px;
    padding: 12px 44px;
    border-radius: 14px;

    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(226,232,240,0.95);

    outline: none;
    backdrop-filter: blur(10px);
    box-shadow:
        0 10px 30px rgba(0,0,0,0.25),
        0 0 0 1px rgba(255,255,255,0.04) inset;
    letter-spacing: 0.07rem;
}

#team-loginform .input:focus {
    border-color: rgba(99,102,241,0.65);
    box-shadow:
        0 0 0 4px rgba(99,102,241,0.18),
        0 12px 34px rgba(0,0,0,0.28),
        0 0 0 1px rgba(255,255,255,0.06) inset;
}

.team-field .field-icon-left,
.team-field .field-icon-right {
    position: absolute;
    top: 21px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    opacity: 0.85;
    pointer-events: none;
}

.team-field .field-icon-left {
    left: 14px;
}

.team-field .field-icon-right {
    right: 14px;
    pointer-events: auto;
}

.team-field .toggle-pass {
    appearance: none;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    line-height: 0;
}

.team-field .toggle-pass svg {
    opacity: 0.85;
    transition: opacity .15s ease;
}

.team-field .toggle-pass:hover svg {
    opacity: 1;
}

#team-loginform .forgetmenot {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0 4px;
}

#team-loginform .forgetmenot input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #6366f1;
}

#team-loginform .button-primary {
    width: 100%;
    height: 48px;
    border-radius: 14px !important;
    border: 1px solid rgba(255,255,255,0.12);
    cursor: pointer;

    font-weight: 700;
    font-size: 1rem;
    color: #fff;

    background: linear-gradient(135deg, rgba(99,102,241,0.95), rgba(139,92,246,0.95));
    box-shadow:
        0 14px 45px rgba(99,102,241,0.35),
        0 0 0 1px rgba(255,255,255,0.06) inset;

    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

#team-loginform .button-primary:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow:
        0 18px 60px rgba(99,102,241,0.42),
        0 0 0 1px rgba(255,255,255,0.08) inset;
}

.links a {
    color: rgba(165,180,252,0.95);
    text-decoration: none;
}

.links a:hover {
    text-decoration: underline;
}

/* hide cm warning */
.cmprecallwarning {
    visibility: hidden;
}

/* hide accessiblity icon */
.ea11y-widget {
    visibility: hidden;
}

.wwa-login-form form p,
.wwa-login-form-webauthn p {
    text-align: left;
}

.wwa-login-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #e2e8f0;
    font-size: 0.95rem;
}

div.wwa-login-form {
    padding-bottom: 0;
    max-width: unset;
}

div.wwa-login-form-webauthn {
    margin-bottom: 10px;
}

.wwa-login-form-webauthn {
    display: flex;
    flex-direction: column-reverse;
}

.wwa-login-form-webauthn div.wp-webauthn-notice,
.wwa-login-form-webauthn .wwa-login-username {
    display: none;
}

.wwa-login-form-webauthn input[type=text],
.wwa-login-form-traditional input[type=text] {
    width: 100%;
    height: 48px;
    padding: 12px 44px;
    border-radius: 14px;

    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    color: rgba(226,232,240,0.95) !important;

    outline: none;
    backdrop-filter: blur(10px);
    box-shadow:
        0 10px 30px rgba(0,0,0,0.25),
        0 0 0 1px rgba(255,255,255,0.04) inset;
    letter-spacing: 0.07rem;
}

.wwa-login-form-webauthn input[type=text]:focus,
.wwa-login-form-traditional input[type=text]:focus {
    border-color: rgba(99,102,241,0.65);
    box-shadow:
        0 0 0 4px rgba(99,102,241,0.18),
        0 12px 34px rgba(0,0,0,0.28),
        0 0 0 1px rgba(255,255,255,0.06) inset;
    color: rgba(226,232,240,0.95) !important;
}

.wwa-login-form-webauthn input[type=button],
.wwa-login-form-traditional input[type=submit] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    box-shadow: 0 12px 40px rgba(99, 102, 241, 0.35);
    transition: transform .2s ease, box-shadow .2s ease;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    height: unset;
}

.wwa-login-form-webauthn input[type=button]:hover,
.wwa-login-form-traditional input[type=submit]:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 54px rgba(99, 102, 241, 0.45);
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    border-radius: 12px;
}

.wwa-login-form-webauthn input[type=button]:active,
.wwa-login-form-webauthn input[type=button]:focus {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
}

.wwa-login-form-webauthn input[type=button]:disabled {
    background: linear-gradient(135deg, gray 0%, #8b5cf6 100%);
}

div.wwa-login-form input[type="text"],
div.wwa-login-form input[type="password"] {
    width: 100%;
    padding: 12px 12px 12px 50px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.18) !important;
    background: rgba(15, 15, 26, 0.55) !important;
    color: #e2e8f0 !important;
    outline: none;
    height: unset !important;
}

div.wwa-login-form input[type="text"]:focus,
div.wwa-login-form input[type="password"]:focus {
    border-color: rgba(99,102,241,0.7);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.15);   
}

div.wwa-login-form input[type="text"]:-webkit-autofill,
div.wwa-login-form input[type="password"]:-webkit-autofill {
    -webkit-box-shadow: 0 0 0 1000px rgba(15, 15, 26, 0.55) inset !important;
    -webkit-text-fill-color: #fff !important;
    caret-color: #e2e8f0;
    transition: background-color 9999s ease-out 0s;
}

div.wwa-login-form .field-icon-left,
div.wwa-login-form .field-icon-right {
    top: 23px;
}

a.wwa-w2t,
a.wwa-t2w {
    color: white;
    text-decoration: none;
    padding-top: 5px;
}

a.wwa-w2t:hover,
a.wwa-t2w:hover {
    color: white;
}

span.wpml-ls-native {
    padding-left: 5px;
}

a.wpml-ls-link {
    color: rgba(165,180,252,0.95);
    text-decoration: none;   
}

a.wpml-ls-link:hover {
    color: white;
}