@import url('https://fonts.googleapis.com/css2?family=Teko:wght@300;500;600&family=Inter:wght@300;400;500;600&display=swap');

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

body {
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 100vh;
    background-image: url('../assets/img/structural.jpg') !important;
    background-size: cover;
    padding-top: 115px;
    padding-right: 8%;
}

/* ── BRAND TEXT (left side, very subtle) ── */
.brand-text {
    position: fixed;
    left: 44px;
    top: 50%;
    transform: translateY(-50%);
    font-family: 'Teko', sans-serif;
    font-size: 108px;
    font-weight: 600;
    line-height: 0.85;
    letter-spacing: -3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    text-shadow: 2px 2px 30px rgba(0, 0, 0, 0.85);
    pointer-events: none;
    z-index: 1;
    user-select: none;
}

@media (max-width: 960px) {
    body {
        justify-content: center;
        padding-right: 0;
    }

    .brand-text {
        display: none;
    }
}

/* ── TOP BAR ── */
.top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 115px;
    background: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 3px solid #1565C0;
    z-index: 1000;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
}

.top-bar img {
    height: 86px;
    width: auto;
    object-fit: contain;
}

/* ── CARD ── */
.wrapper {
    position: relative;
    z-index: 10;
    width: 400px;
    background: #ffffff;
    border-radius: 18px;
    padding: 36px 36px 28px;
    box-shadow:
        0 2px 4px rgba(0, 0, 0, 0.1),
        0 16px 40px rgba(0, 0, 0, 0.28),
        0 40px 80px rgba(0, 0, 0, 0.22);
}

/* Blue accent line at top */
.card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #0D47A1, #1976D2, #42A5F5);
    border-radius: 18px 18px 0 0;
}

/* ── CARD HEADER ── */
.card-header {
    text-align: center;
    margin-bottom: 26px;
}

.card-header h2 {
    font-family: 'Teko', sans-serif;
    font-size: 40px;
    font-weight: 600;
    color: #0d1b2a;
    letter-spacing: 1px;
    line-height: 1;
}

/* ── ERROR MESSAGE ── */
.error-message {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #c62828;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 14px;
    background: #fff5f5;
    border: 1px solid #ffcdd2;
    border-radius: 9px;
    margin-bottom: 18px;
}

.error-message i {
    font-size: 16px;
    flex-shrink: 0;
}

/* ── INPUT GROUP ── */
.input-group {
    margin-bottom: 16px;
}

.input-group label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #607d8b;
    margin-bottom: 7px;
}

.input-box {
    position: relative;
}

.input-box input {
    width: 100%;
    height: 46px;
    background: #f4f7fb;
    border: 1.5px solid #dde6f0;
    border-radius: 10px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: #1a2533;
    padding: 0 44px 0 16px;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.input-box input::placeholder {
    color: #b0bec5;
}

.input-box input:focus {
    border-color: #1565C0;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.1);
}

.input-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 17px;
    color: #b0bec5;
    pointer-events: none;
    transition: color 0.2s ease;
}

.input-box input:focus~i {
    color: #1565C0;
}

/* ── BUTTONS ── */
.btn-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
}

.btn {
    width: 100%;
    height: 46px;
    border: none;
    border-radius: 11px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
}

.btn-primary {
    background: #1565C0;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(21, 101, 192, 0.38);
}

.btn-primary:hover {
    background: #0D47A1;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(21, 101, 192, 0.45);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.3);
}

.btn-offline {
    background: #f4f7fb;
    color: #78909c;
    border: 1.5px solid #dde6f0;
}

.btn-offline:hover {
    background: #e8f0fe;
    color: #1565C0;
    border-color: #90caf9;
}

.btn-offline:active {
    transform: scale(0.99);
}

/* ── CARD FOOTER ── */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #f0f4f8;
}

.card-footer>i {
    font-size: 15px;
    color: #90caf9;
}

.admin-link {
    color: #cfd8dc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.admin-link:hover {
    color: #1565C0;
}