* { box-sizing: border-box; }

html, body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
    background: #ffffff;
}

.auth-shell {
    min-height: 100vh;
    display: flex;
}

/* ---------- Left: hero panel ---------- */
.auth-hero {
    position: relative;
    flex: 1 1 59%;
    min-height: 100vh;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.auth-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 22, 40, 0.72) 0%, rgba(10, 22, 40, 0.82) 60%, rgba(10, 22, 40, 0.92) 100%);
}

.auth-hero-content {
    position: relative;
    z-index: 1;
    padding: 48px 56px 64px;
    color: #ffffff;
    max-width: 620px;
    bottom: 259px;
}

.auth-hero-logo {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 28px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.auth-hero-logo img {
    height: 47px;
    display: block;
}

.auth-hero-badge {
    /* display: inline-flex; */
    align-items: center;
    gap: 8px;
    background: #0c3f3e;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.auth-hero h1 {
    font-size: 35px;
    line-height: 1.2;
    font-weight: 800;
    margin: 0 0 16px;
    letter-spacing: -0.5px;
}

.auth-hero p {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #cbd5e1;
    margin: 0;
    max-width: 520px;
}

/* ---------- Right: form panel ---------- */
.auth-panel {
    flex: 1 1 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    background: #ffffff;
}

.auth-panel-inner {
    width: 100%;
    max-width: 400px;
}

.auth-panel-inner h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #1e2233;
    margin: 0 0 8px;
}

.auth-panel-inner .auth-subtitle {
    color: #6b7280;
    font-size: .95rem;
    margin: 0 0 32px;
    line-height: 1.5;
}

.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-group label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 14px;
    color: #1e2233;
    margin-bottom: 8px;
}

.auth-forgot-link {
    color: #ea580c;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
}

.auth-forgot-link:hover { text-decoration: underline; }

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrap i.auth-input-icon {
    position: absolute;
    left: 14px;
    color: #9aa2b1;
    font-size: 16px;
    pointer-events: none;
}

.auth-input-wrap input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 1px solid #e2e5ec;
    background: #f9fafc;
    border-radius: 10px;
    font-size: 15px;
    color: #1e2233;
    outline: none;
    transition: border-color .15s ease, background .15s ease;
}

.auth-input-wrap input:focus {
    border-color: #ea580c;
    background: #ffffff;
}

.auth-input-wrap input.auth-otp-input {
    padding-left: 14px;
    text-align: center;
    letter-spacing: .5em;
    font-size: 20px;
    font-weight: 700;
    font-family: 'Courier New', Courier, monospace;
}

.auth-toggle-visibility {
    position: absolute;
    right: 14px;
    background: none;
    border: 0;
    color: #9aa2b1;
    cursor: pointer;
    font-size: 16px;
    padding: 4px;
    line-height: 1;
}

.auth-toggle-visibility:hover { color: #4b5163; }

.auth-btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #ffffff;
    font-size: 15.5px;
    font-weight: 700;
    cursor: pointer;
    transition: filter .15s ease, transform .05s ease;
    margin-top: 4px;
}

.auth-btn:hover { filter: brightness(1.06); }
.auth-btn:active { transform: translateY(1px); }
.auth-btn:disabled { opacity: .65; cursor: not-allowed; }

.auth-status {
    margin: 0 0 20px;
    padding: 12px 14px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.5;
}

.auth-error {
    margin: 0 0 20px;
    padding: 12px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1.5;
}

.auth-error ul { margin: 0; padding-left: 18px; }

.auth-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #6b7280;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    margin-top: 22px;
}

.auth-back-link:hover { color: #1e2233; }

.auth-resend-row {
    text-align: center;
    margin-top: 18px;
    font-size: 13.5px;
    color: #6b7280;
}

.auth-resend-row a {
    color: #ea580c;
    font-weight: 600;
    text-decoration: none;
}

.auth-resend-row a:hover { text-decoration: underline; }

.auth-email-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f3f4f6;
    color: #374151;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 13px;
}

@media (max-width: 900px) {
    .auth-hero { display: none; }
    .auth-panel { flex: 1 1 100%; }
}

.crm-navbar {
    background: #ffffff!important;
}
