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

body {
    min-height: 100vh;
    background: #07111f;
    color: #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Barlow', sans-serif;
    overflow: hidden;
    position: relative;
}

/* ── Blueprint Canvas ── */
.blueprint-canvas {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.blueprint-canvas svg {
    width: 100%;
    height: 100%;
}

.vignette {
    position: fixed;
    inset: 0;
    background: radial-gradient(ellipse at center, transparent 25%, rgba(7, 17, 31, 0.88) 100%);
    pointer-events: none;
    z-index: 1;
}

.auth-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.auth-card {
    background: rgba(10, 22, 40, 0.93);
    border-radius: 16px;
    border: 1px solid rgba(100, 130, 160, 0.2);
    padding: 32px 28px 28px;
    backdrop-filter: blur(14px);
    box-shadow:
        0 24px 60px rgba(0, 0, 0, 0.7),
        inset 0 1px 0 rgba(148, 190, 220, 0.05);
    position: relative;
}

.auth-card::before,
.auth-card::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border-color: rgba(148, 190, 220, 0.3);
    border-style: solid;
}

.auth-card::before {
    top: -1px;
    left: -1px;
    border-width: 2px 0 0 2px;
    border-radius: 4px 0 0 0;
}

.auth-card::after {
    bottom: -1px;
    right: -1px;
    border-width: 0 2px 2px 0;
    border-radius: 0 0 4px 0;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.logo-img-wrap {
    width: 38px;
    height: 38px;
    border-radius: 8px;
    background: rgba(148, 190, 220, 0.08);
    border: 1px solid rgba(148, 190, 220, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.logo-img-wrap img {
    height: 26px;
    width: auto;
    object-fit: contain;
}

.logo-name {
    font-family: 'Barlow Condensed', sans-serif;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e2e8f0;
}

.logo-tagline {
    font-size: 10px;
    color: #4a6070;
    letter-spacing: 0.05em;
    margin-top: 1px;
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    color: #f1f5f9;
    line-height: 1.2;
    margin-bottom: 4px;
}

.auth-sub {
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 24px;
}

.form-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 6px;
    font-family: 'Barlow Condensed', sans-serif;
}

.form-control {
    width: 100%;
    height: 44px;
    background: rgba(7, 17, 31, 0.85) !important;
    border: 1px solid rgba(100, 130, 160, 0.2);
    border-radius: 10px;
    color: #e2e8f0 !important;
    font-size: 13px;
    font-family: 'Barlow', sans-serif;
    padding: 0 42px 0 14px;
    outline: none;
    transition: border-color .2s, box-shadow .2s;
}

.form-control::placeholder {
    color: #2d3f52;
}

.form-control:focus {
    border-color: rgba(148, 190, 220, 0.4);
    box-shadow: 0 0 0 3px rgba(148, 190, 220, 0.06);
    background: rgba(7, 17, 31, 1) !important;
    color: #f1f5f9 !important;
}

.form-control.is-invalid {
    border-color: rgba(239, 68, 68, 0.5);
}

.invalid-feedback {
    font-size: 11px;
    color: #f87171;
    margin-top: 4px;
    display: block;
}

.auth-pass-inputgroup {
    position: relative;
}

.password-addon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #334155 !important;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color .15s;
}

.password-addon:hover {
    color: #94bedc !important;
}

.remember-label {
    font-size: 12px;
    color: #64748b;
}

.btn-login {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 10px;
    background: #1e4d6b;
    color: #e2e8f0;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Barlow Condensed', sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    transition: background .2s, box-shadow .2s, transform .15s;
}

.btn-login:hover {
    background: #245d82;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.5);
    transform: translateY(-1px);
    color: #f1f5f9;
}

.btn-login:active {
    transform: translateY(0);
}

.auth-footer-text {
    font-size: 11px;
    color: #334155;
    text-align: center;
    margin-top: 18px;
}

.auth-footer-text a {
    color: #94bedc;
    text-decoration: none;
}

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

.annotation {
    position: absolute;
    font-family: 'Barlow Condensed', monospace;
    font-size: 9px;
    letter-spacing: 0.05em;
    color: rgba(148, 190, 220, 0.18);
    text-transform: uppercase;
    pointer-events: none;
    user-select: none;
}

.ann-top {
    top: -16px;
    left: 50%;
    transform: translateX(-50%);
}

.ann-left {
    left: -26px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
}

@media (max-width: 576px) {
    .auth-wrapper {
        padding: 16px;
    }

    .auth-card {
        padding: 24px 18px 20px;
    }
}
