/* Account pages – Gentrack hub (datadog.gentrack.io) sign-in look */
* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
    margin: 0;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    color: #e8f0f5;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    position: relative;
    background:
        radial-gradient(ellipse 1100px 520px at 12% -8%, rgba(0, 216, 128, 0.16), transparent 58%),
        radial-gradient(ellipse 900px 480px at 100% 0%, rgba(0, 212, 255, 0.13), transparent 52%),
        radial-gradient(ellipse 800px 560px at 50% 115%, rgba(0, 216, 128, 0.07), transparent 55%),
        linear-gradient(165deg, #02141c 0%, #031018 45%, #041820 100%);
    background-attachment: fixed;
}

body::before { display: none; }

.account-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
    padding: 24px 18px;
    animation: account-rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes account-rise {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}

.account-card {
    position: relative;
    overflow: hidden;
    background: rgba(11, 28, 39, 0.9);
    backdrop-filter: blur(18px) saturate(1.15);
    border: 1px solid rgba(30, 58, 74, 0.95);
    border-radius: 22px;
    padding: 32px 32px 28px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 28px 70px rgba(0, 0, 0, 0.5);
    transition: box-shadow 0.3s ease, transform 0.25s ease, border-color 0.2s ease;
}

.account-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    border-radius: 0;
    padding: 0;
    background: linear-gradient(90deg, transparent, rgba(0, 216, 128, 0.45), rgba(0, 212, 255, 0.35), transparent);
    -webkit-mask: none;
    mask: none;
    pointer-events: none;
}

.account-card:hover {
    transform: none;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.04) inset,
        0 28px 70px rgba(0, 0, 0, 0.55);
}

.account-brand {
    text-align: left;
    margin-bottom: 22px;
}

.account-brand-logo {
    height: 44px;
    width: auto;
    max-width: min(240px, 70vw);
    display: block;
    margin-bottom: 14px;
}

.account-brand-block {
    display: none;
}

.account-brand-kicker {
    margin: 0 0 10px;
    color: #8ba3b5;
    font-size: 0.875rem;
    line-height: 1.55;
    max-width: 42ch;
}

.account-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
}

.account-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 5px 11px;
    border-radius: 999px;
    border: 1px solid rgba(0, 216, 128, 0.28);
    background: rgba(0, 216, 128, 0.12);
    color: #00d880;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.account-chip.cyan {
    border-color: rgba(0, 212, 255, 0.3);
    background: rgba(0, 212, 255, 0.1);
    color: #00d4ff;
}

.account-chip.muted {
    border-color: rgba(30, 58, 74, 0.95);
    background: #0d2433;
    color: #8ba3b5;
}

.account-signin-panel {
    border: 1px solid rgba(0, 216, 128, 0.22);
    background: rgba(6, 22, 32, 0.65);
    border-radius: 14px;
    padding: 14px 16px;
    margin-bottom: 22px;
}

.account-signin-panel strong {
    display: block;
    color: #e8f0f5;
    font-family: Manrope, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.account-signin-panel span {
    color: #8ba3b5;
    font-size: 0.8125rem;
    line-height: 1.45;
}

.account-title {
    display: none;
}

.account-title-underline { display: none; }

.account-subtitle {
    display: none;
}

.account-form .form-group { margin-bottom: 18px; }

.account-form label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #8ba3b5;
    font-family: Manrope, sans-serif;
}

.account-form .form-control {
    width: 100%;
    padding: 12px 14px;
    font-size: 0.95rem;
    border: 1px solid rgba(30, 58, 74, 0.95);
    border-radius: 12px;
    background: #07151e;
    color: #e8f0f5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.account-form .form-control::placeholder { color: #5a7385; }

.account-form .form-control:focus {
    outline: none;
    border-color: #00d880;
    box-shadow: 0 0 0 3px rgba(0, 216, 128, 0.18);
}

.account-form .form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-form .form-check label {
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: "IBM Plex Sans", system-ui, sans-serif;
    color: #8ba3b5;
}

.account-form .form-check input {
    width: 18px;
    height: 18px;
    accent-color: #00d880;
}

.account-forgot {
    color: #00d4ff;
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
}

.account-forgot:hover { text-decoration: underline; }

.btn-primary {
    width: 100%;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 800;
    font-family: Manrope, sans-serif;
    letter-spacing: -0.01em;
    color: #031018;
    background: linear-gradient(120deg, #00d880 0%, #00d4ff 100%);
    border: none;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 8px;
    box-shadow: 0 8px 28px rgba(0, 216, 128, 0.28);
    transition: box-shadow 0.25s ease, transform 0.15s ease, filter 0.2s ease;
}

.btn-primary:hover {
    filter: brightness(1.05);
    box-shadow: 0 12px 34px rgba(0, 216, 128, 0.36);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0) scale(0.985);
}

.account-footer {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid rgba(30, 58, 74, 0.95);
    font-size: 0.75rem;
    text-align: left;
    color: #5a7385;
    line-height: 1.5;
}

.account-footer a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
}

.account-footer a:hover { text-decoration: underline; }

.text-danger { color: #ff6b7a; font-size: 0.8125rem; margin-top: 6px; display: block; }

.alert-success,
.alert.alert-warning {
    background: rgba(0, 216, 128, 0.12);
    border: 1px solid rgba(0, 216, 128, 0.28);
    color: #e8f0f5;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.875rem;
    margin-bottom: 20px;
}

.alert.alert-warning {
    background: rgba(255, 204, 102, 0.14);
    border-color: rgba(255, 204, 102, 0.35);
}

.account-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    background: #0a1a24;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid rgba(30, 58, 74, 0.95);
}

.account-tabs a {
    flex: 1;
    text-align: center;
    padding: 10px 16px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #8ba3b5;
    text-decoration: none;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.account-tabs a:hover { color: #e8f0f5; background: rgba(0, 216, 128, 0.08); }
.account-tabs a.active {
    color: #031018;
    background: linear-gradient(120deg, #00d880, #00d4ff);
    box-shadow: 0 4px 14px rgba(0, 216, 128, 0.25);
}

@media (prefers-reduced-motion: reduce) {
    .account-wrap { animation: none; }
    .btn-primary, .account-card { transition: none; }
}
