/* Base Layout Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
}

/* Panel Layout styling */
.login-container {
    background: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

h2 {
    color: #333333;
    margin-bottom: 8px;
    font-size: 28px;
}

.subtitle {
    color: #777777;
    font-size: 14px;
    margin-bottom: 30px;
}

/* Form Element Layouts */
.input-group {
    position: relative;
    margin-bottom: 22px;
    text-align: left;
}

.field-icon {
    position: absolute;
    left: 15px;
    top: 16px;
    color: #aaa;
}

.input-group input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
    font-size: 16px;
    transition: all 0.3s ease;
}

.input-group input:focus {
    border-color: #2a5298;
    box-shadow: 0 0 5px rgba(42, 82, 152, 0.3);
}

/* Interactive Elements */
.toggle-password {
    position: absolute;
    right: 15px;
    top: 16px;
    cursor: pointer;
    color: #aaa;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 25px;
    color: #555;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.forgot-link, .signup-text a {
    color: #2a5298;
    text-decoration: none;
    font-weight: 600;
}

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

/* Submit Action Control */
.submit-btn {
    width: 100%;
    padding: 14px;
    background: #2a5298;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.submit-btn:hover {
    background: #1e3c72;
}

.signup-text {
    margin-top: 25px;
    font-size: 14px;
    color: #666;
}

/* Dynamic State Messages */
.error-msg {
    color: #d9534f;
    font-size: 12px;
    display: block;
    margin-top: 5px;
    padding-left: 5px;
}
