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

html,
body {
    height: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: #001228;
    min-height: 100vh;
}

.wrap {
    --identity-bg-start: #001228;
    --identity-bg-mid: #002855;
    --identity-bg-end: #0a3d6b;
    --identity-accent: #1a6eb5;
    --identity-accent-soft: rgba(26, 110, 181, 0.15);
    --identity-button-text: #002855;
    display: flex;
    min-height: 100vh;
    background: linear-gradient( 135deg, var(--identity-bg-start) 0%, var(--identity-bg-mid) 45%, var(--identity-bg-end) 100% );
    position: relative;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

    .wrap.theme-certilab {
        --identity-bg-start: #031916;
        --identity-bg-mid: #064e45;
        --identity-bg-end: #0f766e;
        --identity-accent: #5eead4;
        --identity-accent-soft: rgba(94, 234, 212, 0.15);
        --identity-button-text: #064e45;
    }

    .wrap.theme-backoffice {
        --identity-bg-start: #111827;
        --identity-bg-mid: #312e81;
        --identity-bg-end: #4f46e5;
        --identity-accent: #a78bfa;
        --identity-accent-soft: rgba(167, 139, 250, 0.15);
        --identity-button-text: #312e81;
    }

.grid-bg {
    position: absolute;
    inset: 0;
    opacity: 0.04;
    background-image: linear-gradient(rgba(255, 255, 255, 1) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 1) 1px, transparent 1px);
    background-size: 44px 44px;
}

.glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--identity-accent-soft) 0%, transparent 70%);
    top: -100px;
    left: -100px;
    pointer-events: none;
}

.glow2 {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--identity-accent-soft) 0%, transparent 70%);
    bottom: -100px;
    right: 200px;
    pointer-events: none;
}

.nodes {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

    .nodes circle {
        fill: color-mix(in srgb, var(--identity-accent) 58%, transparent);
    }

    .nodes line {
        stroke: color-mix(in srgb, var(--identity-accent) 30%, transparent);
        stroke-width: 0.5;
    }

.left {
    flex: none;
    width: 540px;
    min-height: 540px;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2.5rem;
}

.right {
    flex: none;
    width: 460px;
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2.5rem;
}

.identity-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.055);
    border: 0.5px solid rgba(255, 255, 255, 0.11);
    border-radius: 100px;
    padding: 7px 16px 7px 9px;
    margin-bottom: 2.5rem;
    backdrop-filter: blur(10px);
}

.identity-company-logo {
    width: 34px;
    height: 34px;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.28));
}

.identity-pill-text {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.62);
    letter-spacing: 0.9px;
    text-transform: uppercase;
    font-weight: 600;
}

.left-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 0;
}

.system-acronym {
    font-size: clamp(48px, 5vw, 72px);
    font-weight: 200;
    color: #ffffff;
    letter-spacing: 14px;
    line-height: 1;
    margin-bottom: 1rem;
}

.theme-certilab .system-acronym {
    letter-spacing: 10px;
}

.system-accent {
    width: 48px;
    height: 2px;
    background: var(--identity-accent);
    border-radius: 2px;
    margin-bottom: 1.5rem;
}

.system-fullname {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    max-width: 380px;
}

    .system-fullname strong {
        color: #ffffff;
        font-weight: 500;
        display: block;
        font-size: 16px;
        margin-bottom: 6px;
    }

.left-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 2rem;
}

.feature-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.feature-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--identity-accent);
    flex-shrink: 0;
    margin-top: 5px;
}

.feature-text {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.5;
}

.left-footer {
    padding-top: 1.5rem;
    border-top: 0.5px solid rgba(255, 255, 255, 0.07);
}

.footer-inst {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.24);
    line-height: 1.8;
    letter-spacing: 0.3px;
}

.form-card {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
    border-radius: 20px;
    padding: 2.5rem;
    width: 100%;
    max-width: 400px;
    backdrop-filter: blur(16px);
}

.form-header {
    margin-bottom: 2rem;
}

.form-eyebrow {
    font-size: 10px;
    font-weight: 600;
    color: var(--identity-accent);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.form-header h2 {
    font-size: 22px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 6px;
}

.form-header p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.42);
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 6px;
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.form-input {
    width: 100%;
    height: 44px;
    border: 0.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.06);
    outline: none;
    transition: all 0.15s;
}

    .form-input::placeholder {
        color: rgba(255, 255, 255, 0.25);
    }

    .form-input:focus {
        border-color: var(--identity-accent);
        background: var(--identity-accent-soft);
        box-shadow: 0 0 0 3px var(--identity-accent-soft);
    }

.btn-submit {
    width: 100%;
    height: 46px;
    background: linear-gradient(135deg, #ffffff, #dcecff);
    color: var(--identity-button-text);
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 1.5rem;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s, transform 0.15s;
}

    .btn-submit:hover {
        background: #e8edf5;
        transform: translateY(-1px);
    }

.auth-validation {
    color: #f87171;
    font-size: 12px;
    margin-top: 8px;
}

    .auth-validation ul {
        padding-left: 1rem;
        margin: 0;
    }

.footer-note {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
    margin-top: 1.25rem;
    line-height: 1.7;
}

.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #ffffff;
    box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.06) inset;
    transition: background-color 9999s ease-in-out 0s;
}

@media (max-width: 900px) {
    .wrap {
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem 1rem;
        gap: 1.5rem;
        overflow-y: auto;
    }

    .left {
        width: 100%;
        min-height: auto;
        padding: 1.5rem;
    }

    .right {
        width: 100%;
        padding: 0;
    }

    .system-acronym {
        font-size: 46px;
        letter-spacing: 8px;
    }

    .form-card {
        max-width: 100%;
    }
}
