/* WF Monitor Auth - Distinct dark hero */

:root {
    --bg-1: #030712;
    --bg-2: #0c162b;
    --panel: #0d1b32;
    --panel-strong: #132746;
    --primary: #59e3ff;
    --primary-strong: #8ff6ff;
    --accent: #b6ff40;
    --text-primary: #e8eefc;
    --text-secondary: #95a6c7;
    --text-muted: #5f6f92;
    --border: #1b2a40;
    --shadow: 0 20px 70px rgba(0, 0, 0, 0.55);
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    min-height: 100vh;
}

body {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text-primary);
    background: radial-gradient(circle at 18% 22%, rgba(89, 227, 255, 0.2), transparent 26%),
                radial-gradient(circle at 78% 8%, rgba(182, 255, 64, 0.16), transparent 22%),
                linear-gradient(160deg, var(--bg-1), var(--bg-2));
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    position: relative;
    overflow: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
    content: '';
    position: absolute;
    inset: -20% -10%;
    background: radial-gradient(circle at 40% 50%, rgba(89, 227, 255, 0.06), transparent 42%),
                radial-gradient(circle at 70% 40%, rgba(182, 255, 64, 0.06), transparent 38%);
    transform: rotate(-8deg);
    pointer-events: none;
}

.center-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
    margin: 0 auto;
}

.login-container {
    background: linear-gradient(170deg, rgba(13, 27, 50, 0.96), rgba(8, 13, 24, 0.96));
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 38px 34px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.login-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(89, 227, 255, 0.16), transparent 45%, rgba(182, 255, 64, 0.12));
    opacity: 0.7;
    pointer-events: none;
}

.logo {
    text-align: center;
    margin-bottom: 26px;
    position: relative;
    z-index: 1;
}

.logo img {
    height: 86px;
    width: auto;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.35));
}

h2 {
    font-size: 26px;
    letter-spacing: -0.4px;
    text-align: center;
    margin-bottom: 6px;
    position: relative;
    z-index: 1;
}

.login-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 22px;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

.form-group {
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}

.login-container,
.login-container input,
.login-container button,
.login-container .btn,
.login-container label,
.login-container .login-subtitle {
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

label {
    display: block;
    color: var(--text-secondary);
    font-size: 12px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

input[type="email"],
input[type="password"],
input[type="text"] {
    width: 100%;
    padding: 14px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.02);
    color: var(--text-primary);
    font-size: 15px;
    transition: all 0.15s ease;
}

input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(89, 227, 255, 0.18);
    background: rgba(255, 255, 255, 0.04);
}

input::placeholder {
    color: var(--text-muted);
}

.remember-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--text-secondary);
}

.remember-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.login-container input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    position: relative;
    transition: all 0.15s ease;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.25);
}

.login-container input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(89, 227, 255, 0.18);
    border-color: var(--primary);
}

.login-container input[type="checkbox"]:checked {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong));
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(89, 227, 255, 0.18);
}

.login-container input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    inset: 4px;
    border-radius: 4px;
    background: rgba(2, 16, 25, 0.9);
}


.password-container {
    position: relative;
}

.eye-container {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    font-weight: 700;
    font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: all 0.15s ease;
    text-decoration: none;
    position: relative;
    z-index: 1;
}

.login-btn {
    background: linear-gradient(115deg, var(--primary), var(--primary-strong));
    color: #021019;
    box-shadow: 0 16px 40px rgba(89, 227, 255, 0.3);
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 44px rgba(89, 227, 255, 0.34);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    border-color: var(--primary);
}

.create-account-btn {
    margin-top: 12px;
}

.or-separator {
    margin: 16px 0 8px;
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.or-separator span {
    padding: 0 8px;
    background: linear-gradient(160deg, rgba(13, 27, 50, 0.96), rgba(8, 13, 24, 0.96));
}

.or-separator::before,
.or-separator::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border));
}

.or-separator::before {
    left: 0;
}

.or-separator::after {
    right: 0;
    background: linear-gradient(90deg, var(--border), transparent);
}

#message-container {
    min-height: 28px;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.success-message,
.error-message,
.info-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 14px;
    border: 1px solid transparent;
}

.success-message {
    background: rgba(110, 231, 183, 0.1);
    border-color: rgba(110, 231, 183, 0.4);
    color: #d1fae5;
}

.error-message {
    background: rgba(248, 113, 113, 0.08);
    border-color: rgba(248, 113, 113, 0.4);
    color: #fecdd3;
}

.info-message {
    background: rgba(89, 227, 255, 0.08);
    border-color: rgba(89, 227, 255, 0.35);
    color: #dbeafe;
}

@media (max-width: 520px) {
    .login-container {
        padding: 30px 24px;
    }

    .logo img {
        height: 72px;
    }
}
