/* SABINA AI — Auth pages */

.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 24px 60px;
    background: var(--snow);
}

.auth-logo {
    width: 100px;
    height: 100px;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(212,32,32,.22);
    margin-bottom: 24px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: sb-breathe 3s ease-in-out infinite;
}
.auth-logo img { width: 100%; height: 100%; object-fit: contain; padding: 8px; }

@keyframes sb-breathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.auth-brand {
    font-family: 'Sora', sans-serif;
    font-size: 30px;
    font-weight: 800;
    color: var(--head);
    letter-spacing: -1px;
    margin-bottom: 4px;
    text-align: center;
}
.auth-brand span {
    background: var(--grad);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.auth-sub {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 32px;
    text-align: center;
}

.auth-card {
    width: 100%;
    max-width: 440px;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: var(--r-lg);
    padding: 30px 28px;
    box-shadow: var(--sh-md);
}
.auth-card h2 {
    font-family: 'Sora', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--head);
    margin-bottom: 20px;
    text-align: center;
}
.auth-field { margin-bottom: 16px; }
.auth-field label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.auth-field-wrap { position: relative; }
.auth-field-ico {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: .55;
}
.auth-input {
    width: 100%;
    background: var(--snow);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 13px 14px 13px 42px;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
    color: var(--head);
    outline: none;
    transition: border-color .25s, box-shadow .25s;
}
.auth-input:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 4px rgba(212,32,32,.08);
    background: var(--white);
}
.auth-input.error { border-color: #DC2626; box-shadow: 0 0 0 4px rgba(220,38,38,.08); }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-btn {
    width: 100%;
    padding: 14px;
    margin-top: 8px;
    background: var(--grad);
    border: none;
    border-radius: 13px;
    font-family: 'Sora', sans-serif;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(212,32,32,.28);
    transition: transform .18s, box-shadow .18s;
}
.auth-btn:hover { box-shadow: 0 8px 22px rgba(212,32,32,.36); }
.auth-btn:active { transform: scale(.97); }
.auth-btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.auth-links {
    margin-top: 20px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
}
.auth-links a {
    color: var(--red);
    text-decoration: none;
    font-weight: 600;
}
.auth-links a:hover { text-decoration: underline; }
.auth-error {
    margin-bottom: 16px;
    padding: 12px 14px;
    background: #FEF2F2;
    border: 1.5px solid #FECACA;
    border-radius: 10px;
    font-size: 13px;
    color: #DC2626;
    line-height: 1.5;
}
.auth-success {
    margin-bottom: 16px;
    padding: 12px 14px;
    background: #ECFDF5;
    border: 1.5px solid #BBF7D0;
    border-radius: 10px;
    font-size: 13px;
    color: #059669;
    line-height: 1.5;
}
.pwd-rules {
    margin-top: 8px;
    font-size: 11px;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.pwd-rules .rule { display: flex; align-items: center; gap: 4px; }
.pwd-rules .rule::before { content: '○'; font-size: 12px; }
.pwd-rules .rule.ok { color: var(--green); }
.pwd-rules .rule.ok::before { content: '●'; color: var(--green); }
.pwd-rules .rule.ko { color: #DC2626; }
.pwd-rules .rule.ko::before { content: '●'; color: #DC2626; }

@media (max-width: 640px) {
    .auth-card { padding: 24px 20px; }
    .auth-row { grid-template-columns: 1fr; }
}
