/* ═══════════════════════════════════════════════════════════════════════
   UDM AUTH PAGES (Login / Register / Forgot Password)
   ═══════════════════════════════════════════════════════════════════════ */

.udm-auth {
    padding: 140px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
}
.udm-auth__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    width: 100%;
}
@media (max-width: 1024px) {
    .udm-auth__grid { grid-template-columns: 1fr; gap: 32px; }
    .udm-auth__aside { display: none; }
}

/* ─── Left aside (decorative + quote/benefits) ─────────────────────────── */
.udm-auth__aside { text-align: center; }
.udm-auth__icon-glow {
    display: inline-block;
    padding: 24px;
    border-radius: 50%;
    position: relative;
    animation: udm-auth-glow 3s ease-in-out infinite;
}
@keyframes udm-auth-glow {
    0%, 100% { filter: drop-shadow(0 0 30px rgba(34, 197, 94, 0.30)); }
    50%      { filter: drop-shadow(0 0 60px rgba(34, 197, 94, 0.55)); }
}
.udm-auth__quote {
    margin-top: 40px;
    text-align: left;
    border-left: 3px solid var(--udm-green);
}
.udm-auth__quote-text {
    font-style: italic;
    color: var(--udm-text-primary);
    font-size: 15px;
    line-height: 1.7;
    margin: 0 0 12px 0;
}
.udm-auth__quote-attr {
    color: var(--udm-text-muted);
    font-size: 13px;
    margin: 0;
}

.udm-auth__benefits {
    margin-top: 40px;
    text-align: left;
}
.udm-auth__benefits h3 { margin: 0 0 14px 0; color: var(--udm-text-primary); }
.udm-auth__benefits-list {
    list-style: none;
    margin: 0; padding: 0;
}
.udm-auth__benefits-list li {
    padding: 8px 0;
    color: var(--udm-text-secondary);
    font-size: 14px;
}

/* ─── Form card ────────────────────────────────────────────────────────── */
.udm-auth__card {
    border-top: 2px solid var(--udm-green);
    padding: 36px;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
}
.udm-auth__card .udm-header__logo-link { display: inline-block; line-height: 0; margin-bottom: 24px; }
.udm-auth__title { margin: 0 0 8px 0; color: var(--udm-text-primary); }
.udm-auth__sub {
    color: var(--udm-text-secondary);
    font-size: 15px;
    margin: 0 0 28px 0;
    line-height: 1.6;
}

.udm-auth__error {
    background: rgba(239, 68, 68, 0.10);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #FCA5A5;
    padding: 12px 16px;
    border-radius: var(--udm-radius-sm);
    font-size: 14px;
    margin-bottom: 20px;
}

.udm-auth__success {
    background: rgba(34, 197, 94, 0.10);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #86EFAC;
    padding: 12px 16px;
    border-radius: var(--udm-radius-sm);
    font-size: 14px;
    margin-bottom: 20px;
}

.udm-auth__form { display: block; }

.udm-auth__name-row {
    gap: 14px;
    margin-bottom: 0;
}
.udm-auth__name-row .udm-field-group { margin-bottom: 18px; }

.udm-auth__password-wrap {
    position: relative;
}
.udm-auth__password-wrap .udm-input { padding-right: 44px; }
.udm-auth__toggle-password {
    position: absolute;
    top: 50%; right: 10px;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--udm-text-muted);
    cursor: pointer;
    padding: 6px;
    border-radius: var(--udm-radius-sm);
    transition: color 0.2s;
}
.udm-auth__toggle-password:hover { color: var(--udm-green); }

/* Strength meter */
.udm-auth__strength {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}
.udm-auth__strength span {
    flex: 1;
    height: 4px;
    background: var(--udm-border);
    border-radius: var(--udm-radius-pill);
    transition: background 0.2s;
}
.udm-auth__strength[data-score="1"] span:nth-child(-n+1) { background: #EF4444; }
.udm-auth__strength[data-score="2"] span:nth-child(-n+2) { background: #F59E0B; }
.udm-auth__strength[data-score="3"] span:nth-child(-n+3) { background: #84CC16; }
.udm-auth__strength[data-score="4"] span:nth-child(-n+4) { background: var(--udm-green); }

.udm-auth__strength-label {
    margin: 6px 0 0 0;
    font-size: 12px;
}

.udm-auth__options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    font-size: 13px;
}
.udm-auth__remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--udm-text-secondary);
    cursor: pointer;
}
.udm-auth__remember input[type="checkbox"] {
    appearance: none;
    width: 16px; height: 16px;
    border: 1px solid var(--udm-border-bright);
    border-radius: 3px;
    background: var(--udm-bg-input);
    cursor: pointer;
    position: relative;
    transition: background 0.15s;
}
.udm-auth__remember input[type="checkbox"]:checked {
    background: var(--udm-green);
    border-color: var(--udm-green);
}
.udm-auth__remember input[type="checkbox"]:checked::after {
    content: '✓';
    color: #090D0A;
    font-size: 11px;
    font-weight: 700;
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
}
.udm-auth__forgot {
    color: var(--udm-green);
    font-size: 13px;
    text-decoration: none;
}
.udm-auth__forgot:hover { text-decoration: underline; }

.udm-auth__submit { position: relative; }
.udm-auth__submit-spinner {
    display: inline-block;
    margin-left: 6px;
}
.udm-auth__submit.is-loading .udm-auth__submit-text { opacity: 0.6; }
.udm-auth__submit.is-loading .udm-auth__submit-spinner { animation: udm-spin 1s linear infinite; display: inline-block; }
@keyframes udm-spin { to { transform: rotate(360deg); } }

.udm-auth__divider {
    text-align: center;
    margin: 24px 0;
    position: relative;
    color: var(--udm-text-muted);
    font-size: 12px;
}
.udm-auth__divider::before {
    content: '';
    position: absolute;
    top: 50%; left: 0; right: 0;
    height: 1px;
    background: var(--udm-border);
}
.udm-auth__divider span {
    background: var(--udm-bg-card);
    padding: 0 14px;
    position: relative;
    z-index: 1;
}

.udm-auth__alt {
    text-align: center;
    color: var(--udm-text-secondary);
    font-size: 14px;
    margin: 0;
}
.udm-auth__alt a { color: var(--udm-green); font-weight: 600; }
