/* Basic Reset and Font */
body {
    font-family: 'Roboto', sans-serif;
    background-color: #f4f7f6;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main.container {
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Styles */
.main-header {
    background-color: #003366;
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.main-header .container {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Header Logo */
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.logo i {
    font-size: 2rem;
    margin-right: 12px;
}

/* --- Professional Login Styles --- */

/* Wrapper to center on screen properly */
.login-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    /* Start from top with margin */
    padding-top: 60px;
    width: 100%;
}

.login-card {
    background: #fff;
    width: 100%;
    max-width: 420px;
    padding: 40px 50px;
    /* Symmetrical padding */
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    /* Clean shadow */
    box-sizing: border-box;
    /* Crucial for sizing */
}

.login-header {
    text-align: center;
    margin-bottom: 35px;
}

.login-header h2 {
    color: #003366;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.login-header p {
    color: #888;
    font-size: 0.95rem;
    margin: 0;
}

/* Form Styles inside Login Card */
.login-card .form-group {
    margin-bottom: 25px;
}

.login-card label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Icon Integration */
.input-with-icon {
    position: relative;
    width: 100%;
}

.input-with-icon .icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #003366;
    /* Set default color to corporate blue */
    font-size: 1.2rem;
    pointer-events: none;
    /* Let clicks pass through */
    transition: color 0.3s;
    z-index: 10;
    /* Ensure icon is above input background but below text if it could overlap (though padding prevents that) */
    width: 20px;
    /* Force width */
    text-align: center;
}

.input-with-icon input {
    width: 100%;
    /* Force 50px left padding to always show icon */
    padding: 14px 14px 14px 50px !important;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    outline: none;
    transition: all 0.3s;
    background-color: #fafafa;
    color: #333;
    box-sizing: border-box;
    /* Ensure padding doesn't break width */
}

/* Focus States */
.input-with-icon input:focus {
    border-color: #003366;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.1);
}

.input-with-icon input:focus+.icon,
.input-with-icon:focus-within .icon {
    color: #003366;
    /* Highlight icon on focus */
}

/* Button */
.login-card .btn-submit {
    width: 100%;
    padding: 14px;
    background-color: #003366;
    color: white;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.login-card .btn-submit:hover {
    background-color: #002244;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.login-card .btn-submit:active {
    transform: translateY(1px);
}

/* Standard Form Container (for support request) */
.form-container {
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    margin-top: 30px;
    border: 1px solid #f0f0f0;
}

.form-container h2 {
    color: #003366;
    margin-bottom: 10px;
    border-bottom: 2px solid #eee;
    padding-bottom: 10px;
}

.form-instruction {
    margin-bottom: 20px;
    color: #666;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e1e4e8;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fcfcfc;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #003366;
    background-color: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 51, 102, 0.1);
}

.form-group small {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #888;
}

/* Checkbox Style */
.checkbox-group {
    display: flex;
    align-items: center;
}

.checkbox-group input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
}

/* File Upload Enhancement */
.file-upload-wrapper {
    position: relative;
    overflow: hidden;
    display: inline-block;
    width: 100%;
}

.file-upload-wrapper input[type=file] {
    font-size: 100px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0;
    cursor: pointer;
}

.file-upload-label {
    background: #f8f9fa;
    border: 1px dashed #ced4da;
    border-radius: 4px;
    padding: 12px;
    display: block;
    text-align: center;
    color: #495057;
    transition: all 0.3s;
}

.file-upload-wrapper:hover .file-upload-label {
    background: #e9ecef;
    border-color: #adb5bd;
}

/* Banner Container */
.banner-container {
    width: 100%;
    margin-bottom: 20px;
    text-align: center;
    overflow: hidden;
}

.header-banner {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    display: block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Emergency Contact */
.emergency-contact {
    background-color: #fff3cd;
    color: #856404;
    padding: 15px;
    margin-bottom: 25px;
    border: 1px solid #ffeeba;
    border-radius: 4px;
    text-align: center;
}

.emergency-contact p {
    margin: 0;
}

.emergency-contact a {
    color: #856404;
    text-decoration: underline;
    font-weight: bold;
}

/* Accordion */
.habeas-data-accordion {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    background: #fdfdfd;
}

.habeas-data-accordion summary {
    padding: 15px;
    cursor: pointer;
    font-weight: 500;
    color: #003366;
    background-color: #f8f9fa;
    outline: none;
    list-style: none;
}

.habeas-data-accordion summary::-webkit-details-marker {
    display: none;
}

.habeas-data-accordion summary::after {
    content: '+';
    float: right;
    font-weight: bold;
    font-size: 1.2rem;
}

.habeas-data-accordion[open] summary::after {
    content: '-';
}

.accordion-content {
    padding: 15px;
    font-size: 0.9rem;
    color: #555;
    background: #fff;
    border-top: 1px solid #ddd;
    line-height: 1.6;
    text-align: justify;
}

.accordion-content p {
    margin-bottom: 10px;
}

/* Alert Messages */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-success {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* Footer position */
.main-footer {
    text-align: center;
    margin-top: auto;
    padding: 20px 0;
    color: #777;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
}