/* ============================================
    login.css — Enterprise Auth Panel
    ============================================ */

* { box-sizing: border-box; }

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    background: #f1f5f9;
}

/* ── Background ─────────────────────────────── */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(900px 420px at 12% 8%, rgba(19,99,163,0.08), transparent 58%),
        radial-gradient(720px 360px at 88% 92%, rgba(15,23,42,0.05), transparent 62%),
        #eef2f6;
    position: relative;
    overflow: hidden;
}

/* ── Card ────────────────────────────────────── */
.auth-card {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid #dbe3ee;
    box-shadow: 0 18px 40px rgba(15,23,42,0.10);
    padding: 0;
    width: 100%;
    max-width: 440px;
    animation: slideUp 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Logo ────────────────────────────────────── */
.auth-logo {
    text-align: center;
    margin-bottom: 0;
}

.auth-head {
    background: linear-gradient(180deg, #10203a 0%, #0f172a 100%);
    border-bottom: 1px solid #1e293b;
    padding: 1.7rem 1.5rem 1.45rem;
    position: relative;
}

.auth-head::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #1363a3, #0e7490);
}

.logo-icon-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: linear-gradient(170deg, #1d77bf, #0b4f81);
    border-radius: 10px;
    color: #fff;
    font-size: 1rem;
    margin-bottom: 0.7rem;
    box-shadow: 0 8px 18px rgba(2,6,23,0.28);
}

.auth-logo h4 {
    font-size: 1.18rem;
    font-weight: 700;
    color: #f8fafc;
    letter-spacing: -0.01em;
    margin: 0 0 0.25rem;
    text-transform: none;
}

.auth-logo h4 span {
    color: #94a3b8;
    font-weight: 500;
}

.auth-logo p {
    font-size: 0.68rem;
    color: #94a3b8;
    margin: 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* ── Alert ───────────────────────────────────── */
.alert-danger {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #991b1b;
    border-radius: 8px;
    font-size: 0.85rem;
    padding: 0.75rem 1rem;
}

#loginForm {
    padding: 1.45rem 1.5rem 1.2rem;
}

/* ── Form ────────────────────────────────────── */
.form-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: #000000;
    margin-bottom: 0.375rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.input-group-text {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #000000;
    border-right: none;
    border-radius: 7px 0 0 7px;
}

.form-control {
    border-color: #cbd5e1;
    border-left: none;
    font-size: 0.95rem;
    color: #111827;
    background: #ffffff;
    padding: 0.62rem 0.9rem;
    border-radius: 0 7px 7px 0;
}

.input-group:focus-within .input-group-text {
    border-color: #1363a3;
    color: #0f172a;
    background: #f8fafc;
}

.form-control:focus {
    border-color: #1363a3;
    box-shadow: none;
    outline: none;
}
.input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(19,99,163,0.12);
    border-radius: 8px;
}

/* First input group override */
.input-group .input-group-text:first-child {
    border-radius: 7px 0 0 7px;
}

/* Toggle password btn */
#togglePassword {
    border-color: #cbd5e1;
    border-left: 1px solid #cbd5e1;
    color: #000000;
    background: #f9fafb;
    border-radius: 0 7px 7px 0;
    padding: 0 0.75rem;
}
#togglePassword:hover {
    color: #0b4f81;
    background: #f1f5f9;
}

/* ── Submit Button ───────────────────────────── */
.btn-primary {
    background: linear-gradient(180deg, #1363a3 0%, #0b4f81 100%);
    border: none;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-radius: 10px;
    padding: 0.85rem 1.1rem;
    transition: transform 0.15s, box-shadow 0.15s;
    box-shadow: 0 12px 26px rgba(11,79,129,0.24);
}
.btn-primary:hover {
    background: linear-gradient(180deg, #0f5c99 0%, #094476 100%);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(11,79,129,0.28);
}
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 4px 8px rgba(15,23,42,0.16);
}
.btn-primary:disabled {
    opacity: 0.7;
    transform: none;
}

/* ── Footer ──────────────────────────────────── */
.auth-footer {
    text-align: center;
    margin-top: 0;
    font-size: 0.67rem;
    color: #94a3b8;
    padding: 0.9rem 1rem;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 480px) {
    .auth-card { border-radius: 14px; }
    .auth-head { padding: 1.25rem 1rem 1.1rem; }
    #loginForm { padding: 1.15rem 1rem 1rem; }
}

