* {
    padding: 0%;
    margin: 0%;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body, html {
    overflow-x: hidden; /* Only hide horizontal overflow */
    overflow-y: auto;   /* Allow vertical scrolling for page content */
    /* Ensure no element can exceed 100% of the viewport width */
    width: 100vw; 
    height: 100vh;
    min-width: 300px;
}

main {
    height: fit-content;
    width: 100%;
    margin-top: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem; /* space-y-6 */
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px;
    /* margin: 50px 0; */
}

.title {
    font-family: 'Agdasima', sans-serif;
    letter-spacing: 1px;
    color: #244969;
    text-align: center;
    font-size: clamp(26px, 5vw, 34px);
    text-wrap: wrap;
    padding: 0 10px;
    margin: 20px 0;
}

/* --- Form Box --- */

.form-box {
    background-color: #244969;
    padding: 20px;
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* --- Labels & Inputs --- */

.label {
    display: block;
    font-size: clamp(16px, 2vw, 20px);
    font-weight: 500;
    color: #ffffff;
}

.input-field {
    display: block;
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: clamp(16px, 2vw, 20px);
    border: 1px solid #4b5563;
    border-radius: 0.375rem;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    background-color: #374151;
    color: #ffffff;
    transition: all 150ms ease-in-out;
}

/* Focus state for input fields */
.input-field:focus {
    outline: none;
    ring: 2px solid #6366f1; /* focus:ring-indigo-500 */
    border-color: #6366f1; /* focus:border-indigo-500 */
}

/* State for dedicated password error in JS */
.input-field.error {
    border-color: #ef4444; /* border-red-500 */
}
.input-field.error:focus {
    border-color: #ef4444; /* keep red border on focus */
}

/* --- Custom File Input Styling --- */

.file-input {
    display: block;
    width: 100%;
    font-size: clamp(16px, 2vw, 20px);
    color: #d1d5db; /* text-gray-300 */
}

/* Styling the actual file button part (vendor prefix needed for broad compatibility) */
.file-input::file-selector-button {
    padding: 6px 20px;
    background: #e0e0e0;
    font-family: 'Agdasima', sans-serif;
    color: #244969;
    border: none;
    border-radius: 5px;
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
    transition: background 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    text-decoration: none;
    text-transform: uppercase;
}

.file-input::file-selector-button:hover {
    background: #d4d4d4; /* Darken the background slightly */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Lift the button slightly */
    color: #41aec2;
}


/* --- Button --- */

.submit-button {
    padding: 6px 20px;
    background: #e0e0e0;
    font-family: 'Agdasima', sans-serif;
    color: #244969;
    border: none;
    border-radius: 5px;
    font-size: clamp(16px, 4vw, 20px);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 
    transition: background 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    text-decoration: none;
    text-transform: uppercase;
    text-decoration: none;
}

.submit-button:hover {
    background: #d4d4d4; /* Darken the background slightly */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Lift the button slightly */
    color: #41aec2;
}

.submit-button:focus {
    outline: none;
    ring: 2px solid #6366f1; /* focus:ring-indigo-500 */
    ring-offset: 2px; /* focus:ring-offset-2 */
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* --- Error Messages --- */

.error-message-general {
    color: #fca5a5; /* text-red-400 */
    font-size: 0.875rem; /* text-sm */
    padding: 0.5rem; /* p-2 */
    border-radius: 0.375rem; /* rounded-md */
    background-color: rgba(153, 27, 27, 0.5); /* bg-red-900/50 */
}

/* Error message generated by JS below the input field */
#password-error-message {
    color: #fca5a5; /* text-red-400 */
    font-size: 0.875rem; /* text-sm */
    margin-top: 0.25rem; /* mt-1 */
}

/* Utility to control visibility via JS */
.hidden {
    display: none !important;
}