:root {
    --brand-dark: #0c2d5b;
    --brand-accent: #16dbc7;
    --brand-warning: #ffb800;
    --muted: #464b52;
    --surface: #ffffff;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f0f4f8 0%, #e8eef3 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.login-wrapper {
    background: var(--surface);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(12, 45, 91, 0.2);
    overflow: hidden;
    max-width: 420px;
    width: 100%;
    animation: slideIn 0.5s ease-out;
    position: relative;
    z-index: 10;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-header {
    background: linear-gradient(135deg, var(--brand-dark) 0%, #1a4a8a 100%);
    padding: 15px 40px;
    text-align: center;
    color: white;
}

.login-header > i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.9;
    color: var(--brand-accent);
}

.login-header h1 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.login-header p {
    font-size: 0.9rem;
    opacity: 0.9;
    font-weight: 300;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.login-body {
    padding: 20px 40px;
}

.messages {
    padding: 0;
    margin-bottom: 20px;
    list-style: none;
}

.messages li {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 8px;
}

.messages li:last-child {
    margin-bottom: 0;
}

.messages i {
    margin-right: 8px;
    font-size: 1.1rem;
}

.messages li.error {
    background: #fee;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.messages li.error i {
    color: #dc3545;
}

.messages li.info {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeeba 100%);
    border-left: 4px solid #ffc107;
    color: #856404;
}

.messages li.info i {
    color: #856404;
}
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
}

.input-wrapper i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--brand-dark);
    font-size: 1.1rem;
    opacity: 0.6;
}

.form-group input {
    width: 100%;
    padding: 12px 14px 12px 42px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    outline: none;
}

.form-group input:focus {
    border-color: var(--brand-accent);
    box-shadow: 0 0 0 3px rgba(22, 219, 199, 0.15);
}

.login-button {
    width: 100%;
    padding: .6rem .75rem;
    background: linear-gradient(135deg, var(--brand-accent) 0%, #08b9aaff 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(22, 219, 199, 0.4);
}

.login-button:active {
    transform: translateY(0);
}

.login-footer {
    text-align: center;
    padding: 15px;
    background: #f8fafb;
    border-top: 1px solid #e8eef3;
}

.login-footer p {
    color: #999;
    font-size: 0.75rem;
    margin: 0;
}

.login-footer a {
    color: var(--brand-accent);
    text-decoration: none;
    transition: color 0.3s;
}

.login-footer a:hover {
    color: var(--brand-dark);
}

.network-watermark {
    position: absolute;
    font-size: 200px;
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
    color: var(--brand-dark);
}

.network-watermark.size-xl {
    font-size: 300px;
    opacity: 0.03;
}

.network-watermark.size-lg {
    font-size: 220px;
    opacity: 0.035;
}

.network-watermark.size-md {
    font-size: 180px;
    opacity: 0.045;
}

.network-watermark.size-sm {
    font-size: 140px;
    opacity: 0.05;
}

/* Info message for inactivity logout */
.info-message {
    background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
    color: #fff;
    padding: 14px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
    animation: slideDown 0.4s ease-out;
}

.info-message i {
    font-size: 1.3rem;
    flex-shrink: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
