/* ==========================================
   TELNET NETWORK MONITOR - AUTH STYLES
   ========================================== */

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

body, h1, h2, h3, h4, h5, h6, p, a, div, span, button, input, textarea, select, table, .btn, .badge, .dropdown-item {
    font-family: 'Poppins', sans-serif !important;
}
i, .bi {
    font-family: bootstrap-icons !important;
}

body {
    min-height: 100vh;
    background-color: #ffffff;
    color: #1e293b;
    position: relative;
    overflow-x: hidden;
}

/* Background Canvas for Constellation Mesh */
#networkCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1;
    pointer-events: none;
}

.login-page {
    position: relative;
    z-index: 2;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    width: 100%;
    max-width: 460px;
    min-height: 520px;
    background: #ffffff;
    border-radius: 16px;
    padding: 64px 48px;
    box-shadow: 0 20px 45px rgba(5, 29, 56, 0.08), 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Logo */
.brand-logo-wrapper {
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo {
    max-height: 54px;
    width: auto;
    object-fit: contain;
}

/* Typography */
.brand-title {
    font-size: 22px;
    font-weight: 800;
    color: #051d38;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.brand-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 28px;
    font-weight: 400;
}

/* Form Layout */
.auth-form {
    width: 100%;
    text-align: left;
}

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

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-left {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 18px;
    pointer-events: none;
    display: flex;
    align-items: center;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 42px 0 42px;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.form-input:focus {
    background-color: #ffffff;
    border-color: #051d38;
    box-shadow: 0 0 0 3px rgba(5, 29, 56, 0.12);
}

.form-input::placeholder {
    color: #94a3b8;
}

/* Password Toggle */
.password-toggle-btn {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 18px;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: color 0.2s;
}

.password-toggle-btn:hover {
    color: #475569;
}

/* Form Options Row */
.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    margin-bottom: 24px;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.remember-me input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #051d38;
    cursor: pointer;
    border-radius: 4px;
}

.forgot-link {
    color: #051d38;
    font-weight: 700;
    text-decoration: none;
    transition: opacity 0.2s;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Buttons */
.submit-btn {
    width: 100%;
    height: 48px;
    background-color: #051d38;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s, transform 0.1s, box-shadow 0.2s;
}

.submit-btn:hover {
    background-color: #031326;
    box-shadow: 0 4px 14px rgba(5, 29, 56, 0.22);
}

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

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Alert Messages */
.alert-box {
    width: 100%;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    display: none;
    text-align: left;
}

.alert-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.alert-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* Logout Page Specific Styles */
.logout-icon-badge {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #557b00;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 18px 0 22px 0;
    box-shadow: 0 4px 14px rgba(85, 123, 0, 0.22);
}

.logout-heading {
    font-size: 20px;
    font-weight: 700;
    color: #051d38;
    margin-bottom: 8px;
}

.logout-subtext {
    font-size: 14px;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 28px;
    max-width: 330px;
}

.support-footer {
    margin-top: 28px;
    font-size: 13px;
}

.support-footer a {
    color: #475569;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.support-footer a:hover {
    color: #051d38;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .login-card {
        padding: 30px 24px;
        border-radius: 14px;
    }

    .brand-title {
        font-size: 20px;
    }
}