* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color-card: #b3b3b3;
    --bg-color-btn: #00d9ff;
}

body {
    font-family: Arial, sans-serif;
    background-color: #000;
    color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: var(--header-h, 72px)
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: #111;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: 700;
    font-size: 22px;
}

.logo a:hover {
    color: var(--bg-color-btn);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.logo img {
    width: 40px;
    height: auto;
    display: block;
}

.logo span {
    font-weight: 700;
    font-size: 22px;
}

/* Nav desktop */
.nav ul {
    list-style: none;
    display: flex;
    gap: 24px;
}

.nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
}

.nav a:hover {
    color: var(--bg-color-btn);
}

/* content */
.content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}


.login-box {
    width: 400px;
    background: #fff;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.login-box h2 {
    margin-bottom: 24px;
    color: #111827;
    font-size: 24px;
    font-weight: 700;
}

.field-error {
    color: #ef4444;
    font-size: 13px;
    margin-top: 6px;
}

.login-box .success-msg {
    color: #10b981;
    font-weight: 600;
    margin-bottom: 10px;
}

.login-box .error-msg {
    color: #ef4444;
    font-weight: 600;
    margin-bottom: 10px;
}

.login-box .info-msg {
    color: #3b82f6;
    font-weight: 600;
    margin-bottom: 10px;
}

.login-box .field-name {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
    text-align: left;
}

.login-box .field-name .field {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.login-box .field {
    margin-bottom: .8rem;
    text-align: left;
}

.login-box .field label,
.login-box .field-name label,
.login-box .field .pw label {
    color: #111;
    font-size: .9rem;
    font-weight: 600;
}

.login-box .field .pw {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-box .field-name label .feather,
.login-box .field label .feather,
.login-box .field .pw label .feather {
    width: 14px;
    height: 14px;
}

.login-box .field .pw .forgot {
    font-size: .9rem;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.login-box .field .pw .forgot:hover,
.login-box .hint:hover {
    color: #00d9ff;
}

.login-box input {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-box input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.login-options .forgot {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s;
}

.login-options .remember:hover,
.login-options .forgot:hover,
.login-box .hint:hover {
    color: #00d9ff;
}

.login-box button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #00d9ff, #00ff99);
    color: #000;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    margin-top: .5rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 217, 255, 0.4);
}

.login-box button:hover {
    background: linear-gradient(135deg, #00ff99, #00d9ff);
    transform: scale(1.05);
    box-shadow: 0 6px 18px rgba(0, 255, 153, 0.5);
}

.login-box .err {
    color: #b91c1c;
    margin: 10px 0;
    font-size: 14px;
}

.login-box .hint {
    color: #6b7280;
    font-size: .8rem;
}

.login-box .helper {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

.login-box .helper p {
    color: #ccd2d5;
    font-weight: 700;
}

.login-box .helper a {
    color: #6b7280;
    font-size: 1rem;
}

.login-box .helper a:hover {
    color: var(--bg-color-btn);
}

footer {
    margin-top: auto;
    background: #111;
    color: #fff;
    text-align: center;
    padding: 15px 10px;
    font-size: 14px;
}