:root{
    --primary: #0F172A;          /* slate-900 — the dark eclipse + text */
    --primary-dark: #1E293B;     /* slate-800 — hover */
    --accent: #0EA5E9;           /* sky-500 — the blue eclipse, buttons, links */
    --accent-dark: #0284C7;      /* sky-600 — accent hover */
    --background: #F8FAFC;       /* soft cool off-white — the whole page */
    --surface: #FFFFFF;          /* pure white — cards, navbar */
    --text: #0F172A;             /* near-black — main text */
    --text-light: #64748B;       /* gray — secondary text, icons */
    --border: #E2E8F0;           /* light gray — lines, dividers */

    /* Status colors */
    --success: #22C55E;          /* green — "clocked in" indicator */
    --danger: #DC2626;           /* red — "clock out", errors */
}

.pw-wrap { position: relative; display: block; }
.pw-wrap input { width: 100%; padding-right: 44px; box-sizing: border-box; }
.pw-toggle {
  position: absolute; top: 50%; right: 12px;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: #64748B; font-size: 15px; padding: 4px;
  display: flex; align-items: center;
}
.pw-toggle:hover { color: #0EA5E9; }


/*container*/
body{
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--background);
    font-family: 'Inter', sans-serif;
    color: var(--text);
}

/*header*/
header{
    text-align: center;
    padding: 16px;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 60px;
    width: auto;
    display: block;
}

main{
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
    background: transparent;
}

.signup-card {
    background: var(--surface);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    width: 100%;
    max-width: 400px;
}

.sub-title{
    font-size: 30px;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 24px 0;
    display: flex;
    justify-content: center;
}

.signup-form{
    display: flex;
    flex-direction: column;
    gap: 10px;
}

label{
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    margin-top: 12px;
}

input{
    border: solid 1px var(--border);
    font-size: 15px;
    border-radius: 8px;
    padding: 12px 14px;
    background: var(--surface);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus{
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

.btn-login{
    margin-top: 20px;
    background: var(--accent);
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 40px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.3);
}

.btn-login:hover{
    background: var(--accent-dark);
    transition: 0.3s;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

a{
    text-decoration: none;
    color: var(--accent);
    font-weight: 500;
}

a:hover{
    color: var(--accent-dark);
}

footer{
    text-align: center;
    padding: 20px;
}

.copyright{
    font-size: 13px;
    color: var(--text-light);
    margin: 0;
}

.login-link{
    text-align: center;
    margin-top: 20px;
    color: var(--text-light);
    font-size: 14px;
}

/* ── DROPDOWN SELECT ─────────────────────── */
select{
    border: none;
    width: 100%;
    font-size: 15px;
    border-radius: 8px;
    padding: 12px 14px;
    padding-right: 40px;
    outline: none;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 0 1px rgba(49, 50, 50, 0.15);
    appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230EA5E9' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
}

select:focus{
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

select option{
    background: var(--surface);
    color: var(--text);
    padding: 10px;
}

select option:hover,
select option:checked{
    background: var(--accent);
    color: white;
}

/* ── ERROR BANNER & MESSAGES ─────────────── */
.error-banner {
    display: none;
    background: #fee2e2;
    color: #991b1b;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid #fecaca;
    font-size: 14px;
}

.error-message {
    color: var(--danger);
    font-size: 13px;
    margin: 4px 0 0 0;
    min-height: 18px;   /* reserves space so the layout doesn't jump */
}

/* ── MOBILE ──────────────────────────────── */
@media (max-width: 480px) {
    header {
        padding: 12px;
    }

    .logo-img {
        height: 48px;
    }

    .signup-card {
        padding: 28px 24px;
    }

    .sub-title {
        font-size: 24px;
    }

    main {
        padding: 16px;
    }
}