/* ============================================================
   register.css — Light Theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

:root {
    --primary: #FF6B00;
    --primary-hover: #E05800;
    --bg: #F4F6F9;
    --card-bg: #FFFFFF;
    --text-dark: #1A1A2E;
    --text-muted: #64748b;
    --border: #E2E8F0;
    --radius: 20px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--bg);
    color: var(--text-dark);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 540px;
}

.auth-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 50px 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.auth-card h1 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    text-align: center;
    margin-bottom: 8px;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 35px;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.form-group label .required {
    color: var(--primary);
    margin-left: 2px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-dark);
    transition: all 0.2s ease;
}

.form-group input::placeholder {
    color: #94A3B8;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
    margin-top: 10px;
}

.btn-submit:hover {
    background: var(--primary-hover);
}

/* ── Login redirect ── */
.auth-footer {
    margin-top: 24px;
    font-size: 1rem;
    color: var(--text-muted);
    text-align: center;
    font-weight: 600;
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 800;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

/* ── OTP Modal ── */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-card {
    background: white;
    width: 100%;
    max-width: 440px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    font-weight: 700;
    color: var(--text-dark);
}

.close-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-muted);
}

.modal-body {
    padding: 24px;
}

#otp_input {
    width: 100%;
    text-align: center;
    letter-spacing: 8px;
    font-size: 1.5rem;
    font-weight: 700;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 20px;
}

#otp_input:focus {
    outline: none;
    border-color: var(--primary);
}