/* Sanjivani HR — sign-in / PIN / password pages (no master page).
   Load after hr-theme.css; tokens and hr-* components come from there. */

/* Sign-in layout: brand panel + form card. Tokens come from hr-theme.css. */
html, body { height: 100%; }
body { background: var(--hr-bg); }

.auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

/* brand panel */
.auth-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem;
    color: #fff;
    background: linear-gradient(160deg, #f2703f 0%, #ea5a2a 45%, #c8431a 100%);
}
.auth-brand::before, .auth-brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}
.auth-brand::before { width: 520px; height: 520px; right: -180px; top: -200px; }
.auth-brand::after { width: 360px; height: 360px; left: -140px; bottom: -160px; }
.auth-brand > * { position: relative; z-index: 1; }

.auth-logo { display: flex; align-items: center; gap: 14px; }
.auth-logo .mark {
    width: 52px; height: 52px; border-radius: 14px;
    background: rgba(255, 255, 255, 0.92);
    display: flex; align-items: center; justify-content: center; padding: 8px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.15);
}
.auth-logo .mark img { width: 100%; height: 100%; object-fit: contain; }
.auth-logo .name { font-size: 1.05rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.auth-logo .sub { font-size: 0.8rem; opacity: 0.85; }

.auth-pitch h1 { color: #fff; font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 0.75rem; max-width: 22ch; }
.auth-pitch p { margin: 0 0 1.75rem; font-size: 0.95rem; opacity: 0.9; max-width: 44ch; line-height: 1.6; }
.auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.auth-points li { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; font-weight: 500; }
.auth-points li i {
    width: 34px; height: 34px; border-radius: 10px; font-size: 19px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.16);
}
.auth-foot { font-size: 0.75rem; opacity: 0.75; }

/* form side */
.auth-form {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem 1.5rem;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--hr-surface);
    border: 1px solid var(--hr-border);
    border-radius: var(--hr-radius-lg);
    box-shadow: var(--hr-shadow-lg);
    padding: 2.25rem 2rem;
}
.auth-card h2 { font-size: 1.375rem; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 0.25rem; }
.auth-card .lead { margin: 0 0 1.5rem; font-size: 0.875rem; color: var(--hr-muted); }
.auth-card .hr-input { height: var(--hr-control-h-lg); font-size: 0.95rem; }
.auth-card .hr-input-group > i { font-size: 19px; }
.auth-card .hr-input-group > .hr-input { padding-left: 2.5rem; }
.auth-card .hr-input-group.has-toggle > .hr-input { padding-right: 2.75rem; }
.auth-toggle {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    width: 34px; height: 34px; border: 0; border-radius: 8px; background: transparent;
    color: var(--hr-subtle); font-size: 19px; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
}
.auth-toggle:hover { background: var(--hr-hover); color: var(--hr-text); }
.auth-row { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; margin: -0.25rem 0 1.25rem; font-size: 0.8125rem; }
.auth-row a { font-weight: 500; }
.auth-card .hr-btn-lg { font-weight: 600; }
.auth-alt { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--hr-border); text-align: center; font-size: 0.8125rem; color: var(--hr-muted); }
.auth-alt a { font-weight: 600; }

/* server-side messages (asp:Label renders a span; hidden while empty) */
.auth-card .hr-alert { margin: 0 0 1.25rem; }

.auth-mobile-brand { display: none; }
.mobile-only-auth-pin { display: none; }

@media (max-width: 900px) {
    .auth { grid-template-columns: 1fr; }
    .auth-brand { display: none; }
    .auth-form { padding: 1.5rem 1rem 2.5rem; align-items: flex-start; }
    .auth-mobile-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 1.5rem; }
    .auth-mobile-brand .mark { width: 44px; height: 44px; border-radius: 12px; background: var(--hr-primary-soft); padding: 7px; }
    .auth-mobile-brand .mark img { width: 100%; height: 100%; object-fit: contain; }
    .auth-mobile-brand .name { font-weight: 700; line-height: 1.15; }
    .auth-mobile-brand .sub { font-size: 0.75rem; color: var(--hr-muted); }
    .auth-card { padding: 1.75rem 1.5rem; box-shadow: var(--hr-shadow); }
}

.is-app .mobile-only-auth-pin { display: block; }


/* ------------------------------------------------ PIN / OTP entry (Login_pin, SetPin, Forgot_Pin, forgot_password) */
.auth-greeting { font-size: 0.875rem; color: var(--hr-muted); margin: -0.75rem 0 1.25rem; }
.auth-greeting strong { color: var(--hr-text); }

.auth-pin-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 0.25rem 0 1.25rem;
}
.auth-pin-row .pin-input {
    width: 52px;
    height: 56px;
    text-align: center;
    font: 600 1.375rem/1 var(--hr-font);
    color: var(--hr-text);
    background: var(--hr-surface);
    border: 1px solid var(--hr-border-strong);
    border-radius: 10px;
    outline: none;
    transition: border-color var(--hr-transition), box-shadow var(--hr-transition), background var(--hr-transition);
    -webkit-appearance: none;
    appearance: none;
}
.auth-pin-row .pin-input:focus { border-color: var(--hr-primary); box-shadow: 0 0 0 3px var(--hr-ring); }
.auth-pin-row .pin-input.filled { border-color: var(--hr-primary); background: var(--hr-primary-soft); }
.auth-pin-row .pin-input:disabled { background: var(--hr-surface-2); color: var(--hr-subtle); cursor: not-allowed; }
.auth-pin-row.is-otp { gap: 8px; }
.auth-pin-row.is-otp .pin-input { width: 46px; height: 52px; font-size: 1.25rem; }

.auth-pin-label { display: block; text-align: center; font-size: 0.78rem; font-weight: 600; color: var(--hr-text-2); margin-bottom: 0.5rem; }
.auth-hint { text-align: center; font-size: 0.78rem; color: var(--hr-muted); margin: -0.5rem 0 1.25rem; }

.auth-timer { text-align: center; font-size: 0.8125rem; color: var(--hr-muted); margin: 0 0 1rem; }
.auth-timer span { font-weight: 600; color: var(--hr-text); font-variant-numeric: tabular-nums; }

.auth-card .hr-steps { margin-bottom: 1.5rem; }
.auth-card .hr-step { font-size: 0.75rem; }

.auth-actions { display: grid; gap: 0.6rem; margin-top: 0.25rem; }
.auth-card .hr-alert { margin: 0 0 1.25rem; }
.auth-card .hr-btn-block[style*="display: block"], .auth-card .hr-btn-block[style*="display:block"] { display: block !important; width: 100%; }

@media (max-width: 400px) {
    .auth-pin-row .pin-input { width: 46px; height: 52px; }
    .auth-pin-row.is-otp .pin-input { width: 40px; height: 48px; font-size: 1.1rem; }
}
