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

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

:root {
    --orange:        #F97316;
    --orange-hover:  #EA6C0A;
    --orange-light:  #FFF7ED;
    --orange-border: #FED7AA;
    --danger:        #DC2626;
    --bg:            #F8F8F6;
    --surface:       #FFFFFF;
    --border:        #E8E8E4;
    --text-primary:  #1A1A18;
    --text-muted:    #8A8A84;
    --radius:        10px;
    --radius-sm:     6px;
    --radius-pill:   999px;
}

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

/* ── CARD ── */
.register-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 2px 8px rgba(0,0,0,.06), 0 8px 32px rgba(0,0,0,.04);
    padding: 40px 36px 36px;
    width: 100%;
    max-width: 420px;
}

/* ── HEADING ── */
h2 {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 28px;
    color: var(--text-primary);
}

/* ── FORM ── */
form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

form div {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
}

input[type="text"],
input[type="password"],
input[type="email"] {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-family: inherit;
    color: var(--text-primary);
    background: var(--surface);
    transition: border-color 0.15s, box-shadow 0.15s;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}

input::placeholder { color: var(--text-muted); }

/* ── SUBMIT BUTTON ── */
button[type="submit"] {
    margin-top: 4px;
    padding: 11px;
    width: 100%;
    background: var(--orange);
    color: #fff;
    border: none;
    border-radius: var(--radius-pill);
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    letter-spacing: 0.01em;
}

button[type="submit"]:hover  { background: var(--orange-hover); }
button[type="submit"]:active { transform: scale(0.98); }

/* ── ERROR MESSAGE ── */
.error-msg {
    margin-top: 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--danger);
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: var(--radius-sm);
    padding: 9px 13px;
}

/* ── FOOTER LINK ── */
.register-footer {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

.register-footer a {
    color: var(--orange);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

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


.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-google:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 18px 0;
    color: var(--text-muted);
    font-size: 12px;
}

.divider::before,
.divider::after {
    content: "";
    flex: 1;
    border-bottom: 1px solid var(--border);
}

.divider span {
    margin: 0 10px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}