/* SuplementosMC - estilos completos de credencial */
:root {
    --bg: #f2f4f7;
    --surface: #ffffff;
    --text: #17191d;
    --muted: #707782;
    --line: #e4e7eb;
    --accent: #17191d;
    --green: #65a83e;
    --red: #8d1725;
    --shadow: 0 18px 50px rgba(20, 26, 34, .10);
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    padding: 28px 16px;
    color: var(--text);
    background: radial-gradient(circle at top, #ffffff 0, var(--bg) 58%, #e9edf2 100%);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
button, input { font: inherit; }
.page-shell {
    width: 100%;
    min-height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.login-panel, .credential-card {
    position: relative;
    width: min(100%, 460px);
    padding: 38px;
    background: var(--surface);
    border: 1px solid rgba(20, 26, 34, .06);
    border-radius: 22px;
    box-shadow: var(--shadow);
}
.login-panel { padding-top: 76px; }
.login-logos {
    position: absolute;
    top: 18px;
    right: 18px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    height: 22px;
}
.login-logos .login-logo {
    display: block !important;
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    min-height: 18px !important;
    max-width: 18px !important;
    max-height: 18px !important;
    object-fit: contain !important;
    flex: 0 0 18px !important;
}
.panel-heading { margin-bottom: 28px; }
.eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #777f89;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
}
h1 { margin: 0 0 10px; font-size: clamp(27px, 5vw, 34px); line-height: 1.12; letter-spacing: -.04em; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.alert {
    margin: 0 0 18px;
    padding: 12px 14px;
    color: #8d1725;
    background: #fff1f2;
    border: 1px solid #f3cbd0;
    border-radius: 10px;
    font-size: 13px;
    line-height: 1.5;
}
form { display: flex; flex-direction: column; }
form label { margin: 0 0 8px; font-size: 13px; font-weight: 700; }
form input[type="tel"], .password-field input {
    width: 100%;
    height: 49px;
    padding: 0 14px;
    color: var(--text);
    background: #fbfcfd;
    border: 1px solid #dce1e7;
    border-radius: 10px;
    outline: none;
    transition: border-color .18s, box-shadow .18s;
}
form input[type="tel"] { margin-bottom: 20px; }
form input:focus { border-color: #858d98; box-shadow: 0 0 0 3px rgba(90, 100, 112, .10); }
.password-field { position: relative; margin-bottom: 22px; }
.password-field input { padding-right: 54px; }
.toggle-password {
    position: absolute;
    top: 0;
    right: 0;
    width: 49px;
    height: 49px;
    display: grid;
    place-items: center;
    color: #707782;
    background: transparent;
    border: 0;
    cursor: pointer;
}
.toggle-password svg { display: block; }
.submit-button {
    width: 100%;
    min-height: 50px;
    padding: 12px 18px;
    color: #fff;
    background: #17191d;
    border: 0;
    border-radius: 10px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity .18s, transform .18s;
}
.submit-button:hover { transform: translateY(-1px); }
.submit-button:disabled { opacity: .45; cursor: not-allowed; }
.login-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.login-links p { margin: 0; }
a { color: #343a42; text-decoration: none; }
a:hover { text-decoration: underline; }
.login-links a { font-size: 12px; font-weight: 650; }
.privacy-note { margin: 22px 0 0; color: #9097a1; font-size: 11px; text-align: center; }
.credential-card { text-align: center; padding: 30px 34px; }
.credential-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left; }
.credential-topline .eyebrow { margin: 0; }
.status-dot { width: 11px; height: 11px; flex: 0 0 11px; border-radius: 50%; }
.credential-logo-wrap {
    width: 148px;
    height: 148px;
    margin: 28px auto 20px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 50%;
}
.credential-logo { display: block; width: 125px; height: 125px; object-fit: contain; }
.credential-card h1 { margin: 0; font-size: clamp(23px, 5vw, 30px); overflow-wrap: anywhere; }
.credential-divider { width: 76px; height: 4px; margin: 18px auto 20px; border-radius: 5px; }
.validity-message { padding: 18px 14px; background: #f7f8fa; border-radius: 13px; }
.validity-message p, .extra-message p { margin: 0 0 12px; color: #5f6771; font-size: 13px; line-height: 1.6; }
.validity-status { display: inline-block; margin: 2px 0 12px; padding: 8px 15px; border-radius: 999px; font-size: 12px; letter-spacing: .04em; }
.validity-status.is-current { color: #286d28; background: #e9f6e7; }
.validity-status.is-not-current { color: #8d1725; background: #fae9eb; }
.validity-message time { display: block; color: #8a929c; font-size: 11px; }
.extra-message { margin-top: 15px; padding: 15px; border: 1px solid var(--line); border-radius: 12px; }
.extra-message p { margin: 0; }
.credential-footer { margin-top: 22px; color: #7d858f; font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.logout-link { display: inline-block; margin-top: 16px; font-size: 12px; font-weight: 700; }
.site-footer { margin-top: 22px; color: #a0a6ae; font-size: 11px; text-align: center; }

@media (max-width: 520px) {
    body { padding: 16px 12px; }
    .page-shell { min-height: calc(100vh - 32px); }
    .login-panel, .credential-card { padding: 28px 22px; border-radius: 18px; }
    .login-panel { padding-top: 72px; }
    .login-logos { top: 17px; right: 17px; }
    .login-links { flex-direction: column; align-items: center; gap: 12px; }
    .credential-logo-wrap { width: 132px; height: 132px; }
    .credential-logo { width: 112px; height: 112px; }
}
