:root {
    --primary-accent: #22c55e;
    --branding-accent: #eab308;
    --hover-accent: #fde047;
    --bg-dark-navy: #000000;
    --card-bg: rgba(12, 12, 12, 0.95);
    --border-color: #1f2937;
    --text-main: #ffffff;
    --text-muted: #9ca3af;
    --text-sub: #d1d5db;
    --danger: #ef4444;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-dark-navy);
    overflow-x: hidden;
}

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}
.brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--branding-accent);
    text-decoration: none;
    flex-shrink: 0;
}

.brand img {
    display: block;
    width: 42px;
    height: 42px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--primary-accent);
}

.brand > span {
    display: flex;
    flex-direction: column;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--text-main);
}

.brand small {
    margin-top: 2px;
    color: var(--branding-accent);
    font-size: 9px;
    letter-spacing: 2px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 30px 24px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
}

/* Sleek Mobile-Optimized Fixed Top Popup Notification */
.message {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    width: 90%;
    max-width: 440px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    display: none;
}

.message[data-type="success"] {
    display: block;
    background-color: #064e3b;
    color: #22c55e;
    border: 1px solid #10b981;
    animation: slideDown 0.3s ease-out;
}

.message[data-type="error"] {
    display: block;
    background-color: #450a0a;
    color: #f87171;
    border: 1px solid #ef4444;
    animation: slideDown 0.3s ease-out;
}

.message[data-type="info"] {
    display: block;
    background-color: #0a0a0a;
    color: var(--text-main);
    border: 1px solid var(--border-color);
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translate(-50%, -20px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.back-link {
    display: inline-flex;
    align-items: flex-end;
    gap: 8px;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: var(--branding-accent);
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-top: 24px;
    border-radius: 12px;
    background: #000000;
    border: 1px solid var(--border-color);
    color: var(--branding-accent);
    font-size: 26px;
    font-weight: 800;
    box-shadow: 0 7px 18px rgba(0, 0, 0, 0.4);
}

.eyebrow {
    margin: 20px 0 6px;
    color: var(--branding-accent);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

h1 {
    margin: 0;
    font-size: clamp(24px, 5vw, 30px);
    letter-spacing: -0.8px;
    line-height: 1.2;
    color: var(--text-main);
}

.intro {
    margin: 10px 0 24px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 18px;
}

label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-sub);
}

input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    outline: none;
    background: #000000;
    color: var(--text-main);
    font: inherit;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder {
    color: #6b7280;
}

input:focus {
    border-color: var(--branding-accent);
    box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.15);
}

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 76px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    padding: 8px 6px;
    border: 0;
    background: transparent;
    color: var(--branding-accent);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.password-toggle:hover {
    color: var(--hover-accent);
}

.login-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
}

.login-options a {
    color: var(--branding-accent);
    font-size: 13px;
    text-decoration: none;
    font-weight: 600;
}

.login-options a:hover {
    text-decoration: underline;
}

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin-top: 6px;
    padding: 13px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--branding-accent);
    color: #000000;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-button:hover:not(:disabled) {
    background: var(--hover-accent);
    box-shadow: 0 7px 18px rgba(234, 179, 8, 0.2);
    transform: translateY(-1px);
}

.submit-button:focus-visible,
.password-toggle:focus-visible,
a:focus-visible {
    outline: 3px solid var(--branding-accent);
    outline-offset: 3px;
}

.submit-button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.signup-prompt {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}

.signup-prompt a {
    color: var(--branding-accent);
    font-weight: 700;
    text-decoration: none;
}

.signup-prompt a:hover {
    text-decoration: underline;
}

.security-note {
    margin: 18px 0 0;
    color: #6b7280;
    font-size: 11px;
    line-height: 1.6;
    text-align: center;
}

@media (max-width: 480px) {
    .login-page {
        padding: 16px 12px;
    }

    .login-card {
        padding: 24px 18px;
        border-radius: 14px;
    }

    .brand-mark {
        margin-top: 20px;
    }
}