
/* ── Base ── */
body {
    background: linear-gradient(160deg, #cfd4df 0%, #e4e6ea 55%, #d2d6e0 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

/* ── Main card ── */
.container {
    margin-top: 32px !important;
    margin-bottom: 32px !important;
    background-color: #fff;
    border: none !important;
    border-radius: 20px !important;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.13), 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    padding-bottom: 20px;
    max-width: 500px !important;
    width: calc(100% - 24px) !important;
}

/* ── Header band ── */
#login-head {
    margin: 13px 0 0;
    background: #005895;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 18px;
    padding: 5px 24px 10px;
}

#login-head img {
    max-height: 58px;
    max-width: 44%;
    width: auto;
    height: auto;
    flex-shrink: 1;
    display: block;
}

/* ── DAM logo area ── */
#login-top {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 16px;
    padding: 18px 20px 10px;
    margin: 0;
}

#login-top img {
    max-height: 70px;
    max-width: 46%;
    width: auto;
    height: auto;
    flex-shrink: 1;
    display: block;
}

/* ── Footer band ── */
#login-bottom {
    margin: 14px 0 0;
    text-align: center;
    background: #004B93;
    padding: 8px 20px 7px;
}

#login-bottom img {
    max-height: 54px;
    max-width: 78%;
    width: auto;
    height: auto;
}

/* ── Form card wrapper ── */
#wrapper {
    display: flex;
    justify-content: center;
    padding: 4px 20px 10px;
}

#login {
    background: #f7f8fa;
    border: 1px solid #e2e5ea;
    border-radius: 14px;
    padding: 28px 30px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 2px 12px rgba(0, 75, 147, 0.08);
}

/* ── Login disabled message ── */
.login-disabled-msg {
    background: #eef2f7;
    border: 1px solid #d0d5dd;
    color: #444;
    border-radius: 8px;
    padding: 16px;
    font-size: 13px;
    text-align: center;
    line-height: 1.5;
}

/* ── Error message ── */
.login-error {
    background: #fff0f0;
    border: 1px solid #ffcdd2;
    color: #c0392b;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 16px;
}

/* ── Fields ── */
.login-field {
    margin-bottom: 15px;
}

.login-field label {
    display: block;
    font-size: 10.5px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.7px;
    margin-bottom: 6px;
}

.login-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid #d0d5dd;
    border-radius: 8px;
    font-size: 14px;
    color: #222;
    background: #fff;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.login-field input:focus {
    border-color: #004B93;
    box-shadow: 0 0 0 3px rgba(0, 75, 147, 0.13);
}

/* ── Checkbox ── */
.login-check {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.login-check input[type="checkbox"] {
    width: 15px;
    height: 15px;
    cursor: pointer;
    accent-color: #004B93;
    flex-shrink: 0;
}

.login-check label {
    font-size: 13px;
    color: #555;
    cursor: pointer;
    margin: 0;
    font-weight: normal;
}

/* ── Submit button ── */
#_submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #004B93, #0062bd);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.4px;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    box-shadow: 0 3px 10px rgba(0, 75, 147, 0.28);
}

#_submit:hover {
    background: linear-gradient(135deg, #003a73, #0056a8);
    box-shadow: 0 5px 16px rgba(0, 75, 147, 0.38);
}

#_submit:active { transform: scale(0.98); }

/* ── Info link ── */
.info-link {
    cursor: pointer;
    color: #555;
    font-size: 12px;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.info-link:hover { color: #004B93; text-decoration: none; }

/* ── Tablet (< 600px) ── */
@media (max-width: 600px) {
    #login-head img  { max-height: 48px; }
    #login-top img   { max-height: 58px; }
    #login-bottom img { max-height: 44px; }
}

/* ── Mobile (< 480px) ── */
@media (max-width: 480px) {
    .container {
        margin-top: 0 !important;
        margin-bottom: 0 !important;
        border-radius: 0 !important;
        width: 100% !important;
        min-height: 100vh;
    }

    #login-head  { gap: 8px 14px; padding: 12px 16px 8px; }
    #login-head img  { max-height: 40px; max-width: 46%; }

    #login-top   { padding: 14px 16px 8px; gap: 8px 12px; }
    #login-top img   { max-height: 50px; max-width: 46%; }

    #login-bottom img { max-height: 36px; }

    #login { padding: 22px 18px; }
}

/* ── Very small (< 360px) — stack header images ── */
@media (max-width: 360px) {
    #login-head  { flex-direction: column; gap: 6px; }
    #login-head img  { max-width: 65%; max-height: 34px; }

    #login-top   { flex-direction: column; gap: 6px; }
    #login-top img   { max-width: 55%; max-height: 40px; }
}
