:root {
    --brand: #6366f1;
    --brand-soft: #eef2ff;
    --input-bg: #f8fafc;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 15px;
}

.auth-card {
    width: 100%;
    max-width: 340px;
    text-align: center;
}

.brand-poster {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    margin-bottom: 10px;
    overflow: hidden;
}

.brand-poster img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #0ea5e9;
}

.brand-h {
    font-weight: 800;
    font-size: 1.25rem;
}

.brand-p {
    font-size: 0.7rem;
    color: #64748b;
    margin-bottom: 20px;
    font-weight: 600;
}

.label-sm {
    display: block;
    text-align: left;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 3px;
    margin-left: 4px;
}

.input-box {
    position: relative;
    margin-bottom: 10px;
}

.input-box i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 0.8rem;
}

.input-box input {
    width: 100%;
    height: 42px;
    padding: 0 12px 0 35px;
    border-radius: 10px;
    border: 1.5px solid #f1f5f9;
    background: var(--input-bg);
    font-size: 0.8rem;
    font-weight: 600;
}

.input-box input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(99,102,241,.08);
}

.input-box.code input {
    letter-spacing: 6px;
    font-size: 1.1rem;
    text-align: center;
    padding-left: 12px;
}

.btn-submit {
    background: #0ea5e9;
    color: white;
    border: none;
    height: 42px;
    border-radius: 10px;
    width: 100%;
    font-weight: 700;
    font-size: .85rem;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #0284c7;
    transform: translateY(-1px);
}

.btn-submit:disabled {
    opacity: .6;
    cursor: not-allowed;
    transform: none;
}

.auth-nav {
    margin-top: 15px;
    font-size: .75rem;
    font-weight: 600;
    color: #64748b;
}

.auth-nav a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 800;
}

.alert {
    font-size: .75rem;
    font-weight: 700;
    border: none;
    text-align: left;
}

/* ---------------- step wizard ---------------- */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 6px;
}

.step-indicator .step {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #94a3b8;
    font-size: .7rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.step-indicator .step.active {
    background: var(--brand);
    color: #fff;
}

.step-indicator .step.done {
    background: #0ea5e9;
    color: #fff;
}

.step-indicator .step-line {
    width: 28px;
    height: 2px;
    background: #f1f5f9;
}

.step-indicator .step-line.done {
    background: #0ea5e9;
}

.step-labels {
    display: flex;
    justify-content: space-between;
    font-size: .6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #94a3b8;
    margin-bottom: 18px;
    padding: 0 2px;
}

.resend-note {
    font-size: .7rem;
    color: #64748b;
    margin-top: 12px;
}

.resend-note a {
    color: var(--brand);
    font-weight: 800;
    text-decoration: none;
}

/* ---------------- verify modal (legacy unverified-login prompt) ---------------- */
.verify-backdrop{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 140, 255, 0.15);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.verify-modal{
    width: 420px;
    max-width: 90%;
    background: linear-gradient(145deg, #e6f4ff, #ffffff);
    border-radius: 18px;
    padding: 35px 30px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 120, 255, 0.25);
    border: 1px solid rgba(0, 140, 255, 0.2);
    animation: popIn 0.3s ease-out;
}

.verify-icon{
    font-size: 48px;
    margin-bottom: 10px;
}

.verify-modal h2{
    font-size: 26px;
    color: #0077ff;
    margin-bottom: 10px;
}

.verify-modal p{
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

.verify-note{
    margin: 15px 0;
    padding: 10px;
    background: #dff1ff;
    border-radius: 10px;
    font-size: 14px;
    color: #005fa3;
}

.verify-btn{
    display: inline-block;
    margin-top: 10px;
    padding: 12px 20px;
    background: linear-gradient(90deg, #00a2ff, #0077ff);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    font-weight: bold;
    transition: 0.3s;
}

.verify-btn:hover{
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 120, 255, 0.3);
}

.close-btn{
    margin-top: 12px;
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 14px;
}

.close-btn:hover{
    color: #000;
}

@keyframes popIn{
    from{ transform: scale(0.85); opacity: 0; }
    to{ transform: scale(1); opacity: 1; }
}