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

body {
    font-family: 'Arial', sans-serif;
}

/* NAVY BLUE COLOR SCHEME */
:root {
    --navy-primary: #001f3f;
    --navy-secondary: #003366;
    --navy-light: #00509e;
    --navy-accent: #0074D9;
    --text-light: #ffffff;
    --background-light: #f8f9fa;
}

/* LOGIN STYLES */
.login-body {
    background: linear-gradient(135deg, var(--navy-primary), var(--navy-secondary));
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h1 {
    color: var(--navy-primary);
    font-size: 28px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logo p {
    color: #666;
    font-size: 14px;
}

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

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

.input-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: bold;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--navy-accent);
}

.login-btn {
    width: 100%;
    background: var(--navy-primary);
    color: var(--text-light);
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.login-btn:hover {
    background: var(--navy-secondary);
}

.error-message {
    background: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    margin-top: 15px;
    border: 1px solid #ffcdd2;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* PANEL STYLES */


.panel-header {
    background: var(--navy-primary);
    color: var(--text-light);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.panel-header .logo-image {
    filter: brightness(0) invert(1);
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left h1 {
    font-size: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-left span {
    font-size: 14px;
    opacity: 0.9;
}

.dashboard-frame {
    width: 100%;
    height: calc(100vh - 70px);
    border: none;
}

.logout-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 1px solid white;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logout-btn:hover {
    background: rgba(255,255,255,0.3);
}

/* Icon styles */
.icon {
    font-size: 1.2em;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-footer a {
    color: var(--navy-accent);
    text-decoration: none;
}

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

.logo-svg {
    margin-bottom: 15px;
    text-align: center;
}

.logo-image {
    max-width: 200px;
    height: auto;
}

.logo h1 {
    display: none;
}

.logo p {
    margin-top: 10px;
}

.hidden-iframe {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    border: none;
    opacity: 0;
    pointer-events: none;
}
