/* Ecrãs de acesso SANA: login, registo e recuperação */
body.auth-page {
    margin: 0;
    min-height: 100vh;
    font-family: Montserrat, "Segoe UI", sans-serif;
    color: #1c2430;
    background: #f4f6f8;
}
.auth-shell { min-height: 100vh; display: flex; }
.auth-hero {
    position: relative;
    overflow: hidden;
    flex: 1.05;
    background: #0b1524;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 40px 56px 48px;
}
.auth-slides { position: absolute; inset: 0; overflow: hidden; z-index: 0; }
.auth-slide { position: absolute; inset: -12px; background-size: cover; background-position: center; opacity: 0; transform: scale(1.06); filter: blur(2px); transition: opacity 1s ease; }
.auth-slide.on { opacity: 1; animation: authKen 12s ease forwards; }
.auth-slide:after { content: ""; position: absolute; inset: 0; background:
    linear-gradient(180deg, rgba(7,14,26,.45) 0%, rgba(7,14,26,.28) 42%, rgba(7,14,26,.9) 100%),
    linear-gradient(90deg, rgba(7,14,26,.72) 0%, rgba(7,14,26,.28) 70%); }
@keyframes authKen { to { transform: scale(1); } }
.auth-hero > :not(.auth-slides) { position: relative; z-index: 2; }
.auth-dots { display: flex; gap: 8px; margin-top: 22px; }
.auth-dot { width: 11px; height: 11px; border: 0; border-radius: 99px; background: rgba(255,255,255,.45); padding: 0; cursor: pointer; transition: width .25s, background .25s; }
.auth-dot.on { width: 32px; background: #fff; }
.auth-hero h2 { font-size: 34px; line-height: 1.2; margin: auto 0 12px; max-width: 520px; font-weight: 800; letter-spacing: -0.02em; text-shadow: 0 8px 28px rgba(0,0,0,.45); }
.auth-hero p { max-width: 440px; color: rgba(255,255,255,.92); font-size: 15px; line-height: 1.6; margin: 0; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.auth-hero ul { margin: 18px 0 0; padding: 0; list-style: none; }
.auth-hero li { font-size: 13px; margin: 8px 0; color: rgba(255,255,255,.9); }
.auth-hero li::before { content: "— "; color: #9ec0ee; }
.auth-panel {
    width: min(560px, 100%);
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 36px 28px;
    overflow: auto;
}
.auth-card { width: 100%; max-width: 460px; }
.sana-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 8px; }
.sana-brand img { width: 44px; height: 44px; object-fit: contain; }
.sana-brand.has-logo img { width: auto; height: 56px; max-width: 220px; }
.auth-hero .sana-brand.has-logo img { height: 52px; max-width: 200px; filter: drop-shadow(0 4px 14px rgba(0,0,0,.3)); }
.sana-brand strong { color: #0f766e; letter-spacing: .08em; font-size: 20px; }
.auth-hero .sana-brand strong { color: #fff; }
.auth-kicker { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #6b7280; margin: 0 0 18px; }
.auth-card h1 { font-size: 26px; margin: 0 0 6px; color: #111827; }
.auth-lead { color: #5c6773; font-size: 13px; line-height: 1.55; margin: 0 0 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.full-width { grid-column: span 2; }
.input-group { position: relative; margin-bottom: 12px; }
.input-group label, .auth-card label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #5c6773;
    margin-bottom: 6px;
}
.input-field, .auth-card select {
    width: 100%;
    background: #f7f8fa;
    border: 1px solid #e3e7ee;
    color: #1c2430;
    border-radius: 0;
    padding: 11px 12px;
    font-size: 13px;
    font-family: inherit;
}
.input-field::placeholder { color: #a0a8b3; }
.input-field:focus, .auth-card select:focus { outline: none; border-color: #0f766e; background: #fff; }
.auth-card select option { background: #fff; color: #1c2430; }
.input-group i { position: absolute; left: 12px; top: 34px; color: #0f766e; }
.input-group.has-icon .input-field { padding-left: 38px; }
.submit-btn {
    width: 100%;
    background: #0f766e;
    color: #fff;
    border: 0;
    border-radius: 0;
    padding: 13px 16px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    cursor: pointer;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}
.submit-btn:hover { background: #0d9488; }
.footer-text, .back-link, .register-footer, .copyright {
    text-align: center;
    margin-top: 16px;
    font-size: 12px;
    color: #6b7280;
    text-decoration: none;
    display: block;
}
.footer-text a, .back-link, .register-footer a { color: #0f766e; font-weight: 700; }
.msg, .error-toast {
    padding: 12px 14px;
    font-size: 13px;
    margin-bottom: 14px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}
.msg-success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.msg-error, .error-toast { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.checkbox-group { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: #4b5563; margin-top: 8px; }
.checkbox-group a { color: #0f766e; cursor: pointer; }
#otherSectorDiv { max-height: 0; overflow: hidden; opacity: 0; transition: .3s ease; }
#otherSectorDiv.show { max-height: 90px; opacity: 1; margin-top: 8px; }
@media (max-width: 900px) {
    .auth-hero { display: none; }
    .auth-shell { display: block; }
    .auth-panel {
        width: 100%;
        min-height: 100vh;
        padding: 24px max(20px, env(safe-area-inset-right)) 32px max(20px, env(safe-area-inset-left));
        box-sizing: border-box;
        align-items: flex-start;
    }
    .auth-card {
        max-width: 100%;
        box-sizing: border-box;
    }
    .auth-card h1 { font-size: 22px; }
    .form-grid { grid-template-columns: 1fr; }
    .full-width { grid-column: auto; }
    .input-field, .auth-card select {
        box-sizing: border-box;
        font-size: 16px; /* evita zoom no iOS */
    }
}
