* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    background: #1a1a1a;
    color: #f5f5f5;
}

.login-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #2a2a2a;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    border: 1px solid #3a3a3a;
}

.brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: #dc2626;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

h1 {
    margin: 0 0 8px;
    font-size: 26px;
    color: #ffffff;
}

.subtitle {
    margin: 0 0 24px;
    color: #a0a0a0;
}

.alert {
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 16px;
    font-size: 14px;
}

.alert-error {
    background: #3d1515;
    color: #fca5a5;
    border: 1px solid #7f1d1d;
}

.alert ul {
    padding-left: 18px;
    margin: 0;
}

.login-form label {
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
    color: #a0a0a0;
}

.login-form input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid #4a4a4a;
    margin-bottom: 16px;
    font-size: 15px;
    background: #1a1a1a;
    color: #f5f5f5;
}

.login-form input:focus {
    outline: none;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.25);
}

.password-row {
    position: relative;
}

.password-row input {
    padding-right: 72px;
}

.toggle-btn {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: none;
    background: #3a3a3a;
    color: #d0d0d0;
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
}

.toggle-btn:hover {
    background: #4a4a4a;
}

.toggle-btn:focus {
    outline: 2px solid #dc2626;
    outline-offset: 1px;
}

.login-btn {
    width: 100%;
    border: none;
    background: #dc2626;
    color: #ffffff;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease, background 0.1s ease;
}

.login-btn:hover {
    transform: translateY(-1px);
    background: #b91c1c;
    box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
}

.v2-btn {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 11px 16px;
    border: 1px solid #4a4a4a;
    border-radius: 10px;
    background: transparent;
    color: #d0d0d0;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.1s ease, color 0.1s ease, background 0.1s ease;
    box-sizing: border-box;
}

.v2-btn:hover {
    border-color: #dc2626;
    color: #ffffff;
    background: rgba(220, 38, 38, 0.08);
}

.hint {
    margin-top: 18px;
    font-size: 13px;
    color: #808080;
    text-align: center;
}
