:root {
    --accent: #ffd166;
    /* warm gold */
    --muted: rgba(255, 255, 255, 0.85);
    --glass: rgba(255, 255, 255, 0.08);
    --glass-strong: rgba(255, 255, 255, 0.12);
    --shadow: 0 10px 30px rgba(2, 6, 23, 0.45);
    --radius: 14px;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

body {
    margin: 0;
    font-family: "Poppins", Arial;
    color: var(--muted);
    background: url("https://images.unsplash.com/photo-1597301759565-94bdfb8f3d15?auto=format&fit=crop&w=1920&q=80")
        center/cover no-repeat fixed;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(3, 6, 10, 0.36),
        rgba(3, 6, 10, 0.6)
    );
    backdrop-filter: blur(2px);
    z-index: 0;
}

.card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.06),
        rgba(255, 255, 255, 0.04)
    );
    border-radius: var(--radius);
    padding: 28px 26px 26px 26px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(6px) saturate(120%);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.brand .logo {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(
        135deg,
        rgba(255, 209, 102, 0.14),
        rgba(255, 209, 102, 0.08)
    );
    border: 1px solid rgba(255, 209, 102, 0.12);
    font-weight: 700;
    color: var(--accent);
    font-size: 22px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25),
        inset 0 -6px 18px rgba(255, 209, 102, 0.03);
}

.brand h1 {
    font-size: 20px;
    margin: 0;
    color: var(--muted);
    font-weight: 600;
}

.brand p {
    margin: 0;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

form {
    display: grid;
    gap: 12px;
}

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

label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.02),
        rgba(255, 255, 255, 0.01)
    );
    color: var(--muted);
    outline: none;
    font-size: 15px;
    box-shadow: 0 2px 8px rgba(2, 6, 23, 0.25) inset;
    transition: transform 0.18s ease, box-shadow 0.18s ease,
        border-color 0.18s ease;
}

input[type="text"] {
    text-align: center;
    font-size: 18px;
}

input:focus {
    transform: translateY(-2px);
    border-color: rgba(255, 209, 102, 0.6);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 6px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.password-visibility {
    display: flex;
    align-items: center;
    justify-content: right;
    gap: 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.forgot a {
    font-size: 13px;
    color: var(--accent);
    text-decoration: none;
}

.btn {
    background: linear-gradient(90deg, var(--accent), #ffb55a);
    border: none;
    padding: 10px 16px;
    border-radius: 10px;
    color: #07203b;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
    box-shadow: 0 8px 20px rgba(255, 169, 52, 0.12);
}

.btn:active {
    transform: translateY(1px);
}

.divider {
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.04),
        transparent
    );
    margin: 12px 0;
    border-radius: 6px;
}

.alt {
    text-align: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.link {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

.footer {
    margin-top: 14px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    text-align: center;
}

@media (max-width: 480px) {
    body {
        padding: 18px;
    }

    .card {
        padding: 20px;
    }

    .brand h1 {
        font-size: 18px;
    }
}

.card {
    transform: translateY(18px);
    opacity: 0;
    animation: enter 0.6s cubic-bezier(0.2, 0.9, 0.27, 1) forwards;
}

@keyframes enter {
    to {
        transform: none;
        opacity: 1;
    }
}

.custom-checkbox {
  position: relative;
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #aaa;
  border-radius: 4px;
  cursor: pointer;
  outline: none;
  transition: all 0.2s ease-in-out;
}

/* When checked — custom color */
.custom-checkbox:checked {
  background-color: #ffb700;
  border-color: #ffb700;
}

/* Add a checkmark icon */
.custom-checkbox:checked::after {
  content: "✓";
  color: black;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-size: 14px;
}
