* {
    box-sizing: border-box;
}

body {
    background: #066251;
    font-family: 'Tahoma', sans-serif; 
    font-weight: normal; 
    line-height: 0.9em;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

h1,h2,h3,h4,h5,h6 { 
    font-family: 'Tahoma', sans-serif; 
    font-weight: normal;
    line-height: 1.5em;
    margin: 0;
    padding: 0;
}

p {
    font-size: 0.8em;
    font-weight: normal;
    color: #2c2c2c;
}

h1 { font-size: 2.0em; color: #8f0222; }
h2 { font-size: 1.6em; color: #A90329; }
h3 { font-size: 1.3em; color: #066251; }
h4 { font-size: 1.2em; color: #033d35; font-weight: bold; }
h5 { font-size: 1.1em; color: #066251; font-weight: bold; }
h6 { font-size: 1em; color: #a90329; }

fieldset {
    border: 2px solid #066251;
    border-radius: 8px;
    margin-bottom: 15px;
    background: rgba(6, 98, 81, 0.05);
}

fieldset legend {
    padding: 0 10px;
    background: white;
}

.login-container {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

.login-box {
    border: solid 2px #033d35;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 0.95);
    background: rgba(255, 255, 255, 0.95);
    padding: 30px 25px;
    text-align: center;
    width: 100%;
    -webkit-box-shadow: 0px 0px 15px 5px rgba(0,0,0,0.3);
    -moz-box-shadow: 0px 0px 15px 5px rgba(0,0,0,0.3);
    box-shadow: 0px 0px 15px 5px rgba(0,0,0,0.3);
}

.logo-img {
    max-width: 200px;
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

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

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    max-width: 200px;
    padding: 10px;
    border: 2px solid #066251;
    border-radius: 5px;
    font-size: 14px;
    background: white;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #033d35;
    box-shadow: 0 0 5px rgba(6, 98, 81, 0.3);
}

.form-group label {
    color: #033d35;
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
}

input[type="submit"] {
    border: 3px solid white; 
    color: white; 
    font-family: 'Tahoma', sans-serif;
    font-size: 1.2em;
    font-weight: bold;
    -webkit-box-shadow: inset 0 0 8px rgba(0,0,0,0.1), 0 0 16px rgba(0,0,0,0.2); 
    -moz-box-shadow: inset 0 0 8px rgba(0,0,0,0.1), 0 0 16px rgba(0,0,0,0.2); 
    box-shadow: inset 0 0 8px rgba(0,0,0,0.1), 0 0 16px rgba(0,0,0,0.2); 
    padding: 12px 25px;
    margin-top: 15px;
    background: #066251;
    background: linear-gradient(135deg, #066251 0%, #033d35 50%, #022a26 100%);
    cursor: pointer;
    border-radius: 8px;
    width: 100%;
    max-width: 200px;
    transition: all 0.3s ease;
}

input[type="submit"]:hover {
    background: linear-gradient(135deg, #055a4d 0%, #033530 50%, #01221f 100%);
    transform: translateY(-1px);
    box-shadow: inset 0 0 8px rgba(0,0,0,0.1), 0 0 20px rgba(0,0,0,0.3);
}

.error-message {
    color: red;
    margin-bottom: 15px;
    font-size: 0.9em;
    line-height: 1.3em;
}

/* Mobile-specific adjustments */
@media (max-width: 480px) {
    body {
        padding: 10px;
    }
    
    .login-box {
        padding: 20px 15px;
    }
    
    .logo-img {
        max-width: 150px;
    }
    
    h4 {
        font-size: 1.1em;
    }
    
    p {
        font-size: 0.75em;
    }
    
    .form-group input[type="text"],
    .form-group input[type="password"] {
        max-width: 100%;
        padding: 10px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    input[type="submit"] {
        max-width: 100%;
        font-size: 1.1em;
        padding: 12px 20px;
    }
}

/* Landscape phone adjustments */
@media (max-height: 500px) and (orientation: landscape) {
    body {
        align-items: flex-start;
        padding-top: 10px;
    }
    
    .login-box {
        padding: 15px;
    }
    
    .logo-img {
        max-width: 120px;
        margin-bottom: 10px;
    }
}