/* ─── Auth layout ────────────────────────────────── */
body.auth-body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-main);
    padding: 24px 16px;
}

.auth-wrapper {
    width: 100%;
    max-width: 420px;
}

.auth-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 36px 36px 32px;
}

/* ─── Brand ──────────────────────────────────────── */
.auth-brand {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 28px;
}

.auth-brand span {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

/* ─── Heading ────────────────────────────────────── */
.auth-card h1 {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 5px;
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 24px;
    line-height: 1.5;
}

/* ─── Form ───────────────────────────────────────── */
.auth-form { display: flex; flex-direction: column; }

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary-color);
    cursor: pointer;
    flex-shrink: 0;
}

/* ─── Phone input (country code + number) ───────── */
.phone-input-group {
    display: flex;
    width: 100%;
    height: var(--input-height);
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-card);
    overflow: hidden;
    transition: var(--transition);
}

.phone-input-group:focus-within {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(21,23,24,0.10);
}

/* Use .phone-input-group prefix so these beat .input-group select/input in global.css */
.phone-input-group .phone-code-select {
    width: 110px;
    flex-shrink: 0;
    height: 100%;
    padding: 0 22px 0 10px;
    border: none;
    border-right: 1.5px solid var(--border-color);
    border-radius: 0;
    background-color: var(--bg-main);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
    font-family: inherit;
    font-size: 13px;
    color: var(--text-main);
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    outline: none;
    box-shadow: none;
}

/* Cancel the global focus ring on the individual select inside our group */
.phone-input-group .phone-code-select:focus {
    border-color: transparent;
    border-right-color: var(--border-color);
    box-shadow: none;
    background-color: var(--bg-main);
}

.phone-input-group .phone-number-input {
    flex: 1;
    width: 0;           /* flex children need explicit 0 so flex: 1 works */
    min-width: 0;
    height: 100%;
    padding: 0 14px;
    border: none;
    border-radius: 0;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    color: var(--text-main);
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
}

/* Cancel global focus ring on the number input too */
.phone-input-group .phone-number-input:focus {
    border-color: transparent;
    box-shadow: none;
    background: transparent;
}

.phone-input-group .phone-number-input::placeholder {
    color: #b0b7c3;
}

/* ─── Footer ─────────────────────────────────────── */
.auth-footer {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
    margin: 20px 0 0;
}

.auth-footer a {
    color: var(--text-main);
    font-weight: 600;
    text-decoration: none;
}

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

/* ─── Responsive ─────────────────────────────────── */
@media (max-width: 480px) {
    .auth-card {
        padding: 24px 20px 22px;
        border-radius: var(--radius-md);
    }

    .auth-card h1 {
        font-size: 19px;
    }

    .auth-brand {
        margin-bottom: 20px;
    }
}
