:root {
    --bg: #f5f7fb;
    --surface: #ffffff;
    --muted: #64748b;
    --text: #0f1724;
    --accent: #6c8cff;
    --accent-2: #f357a1;
    --glass: rgba(15, 23, 36, 0.03);
    --shadow: 0 12px 30px rgba(12, 20, 33, 0.06);
    --radius: 14px;
    --gap: 14px;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

/* Base */
* {
    box-sizing: border-box
}

html,
body {
    height: 100%;
    margin: 0;
    background: linear-gradient(180deg, #eaf0ff 0%, #f5f7fb 100%);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale
}

.wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    gap: 18px
}

/* Brand header */
.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 6px
}

header{
    background-color: #0f1724;
    padding: 1% 5%;
    border-radius: 10px;
    color: #fff;
}

.logo img{
    width: 56px;
    height: 56px;
}

.brand h1 {
    margin: 0;
    font-size: 20px
}

.brand .muted {
    margin: 0;
    color: var(--muted);
    font-size: 13px
}

/* Card (form) */
.card {
    width: 100%;
    max-width: 420px;
    background: var(--surface);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(15, 23, 36, 0.04);
    display: flex;
    flex-direction: column;
    gap: 12px
}

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

.field label {
    font-size: 13px;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px
}

.field input[type="email"],
.field input[type="password"] {
    padding: 12px 12px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 36, 0.06);
    font-size: 15px;
    outline: none;
    background: transparent;
    color: var(--text)
}

.field input::placeholder {
    color: rgba(15, 23, 36, 0.35)
}

/* password wrapper */
.pw-wrap {
    display: flex;
    align-items: center;
    gap: 8px
}

.pw-wrap input {
    flex: 1
}

.icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.86));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    box-shadow: 0 6px 14px rgba(12, 20, 33, 0.04);
    cursor: pointer
}

/* Row between */
.row-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    color: var(--muted);
    user-select: none
}

.checkbox input {
    width: 16px;
    height: 16px
}

/* Buttons */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 0;
    font-weight: 800;
    background: linear-gradient(90deg, var(--accent));
    color: #fff;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(108, 140, 255, 0.12)
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed
}

.btn-ghost {
    background: transparent;
    padding: 10px;
    border-radius: 10px;
    border: 1px solid rgba(15, 23, 36, 0.06);
    color: var(--muted);
    font-weight: 700;
    cursor: pointer
}

/* separation */
.sep {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0
}

.sep::before,
.sep::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(15, 23, 36, 0.03)
}

.sep span {
    display: inline-block;
    padding: 0 8px;
    color: var(--muted);
    font-weight: 700;
    border-radius: 999px
}

/* Socials */
.socials {
    display: flex;
    gap: 10px
}

.social {
    flex: 1;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center
}

/* minor text / footer */
.muted {
    color: var(--muted)
}

.small {
    font-size: 13px
}

.center {
    text-align: center
}

/* error messages */
.error {
    color: #ef4444;
    font-size: 13px;
    height: 18px
}

/* toast */
.toast {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 26px;
    background: var(--surface);
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 36, 0.04);
    box-shadow: 0 8px 24px rgba(12, 20, 33, 0.06);
    color: var(--muted);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s
}

.toast.show {
    opacity: 1;
    pointer-events: auto
}

/* responsive tweaks */
@media(min-width:700px) {
    .wrap {
        padding: 36px
    }

    .card {
        padding: 22px;
        gap: 16px
    }
}