/* =======================
   General Reset
   ======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* =======================
   Main Content
   ======================= */
.main-content {
    min-height: 100vh;
}

/* =======================
   Login Container
   ======================= */
.login-container,
#welcome {
    width: 100%;
    max-width: 450px;
    margin: 0 auto 0 auto;
    padding: 1rem;
    background-color: rgb(36, 51, 66);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    text-align: center;
}

#welcome h5 {
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    color: #d0d8e6;
    font-weight: 400;
}

.login-container {
    margin-top: 7px;
}

/* =======================
   Columns
   ======================= */
.login-column {
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

/* =======================
   Form Elements
   ======================= */
.login-text {
    margin-bottom: 1.5rem;
    text-align: center;
    color: #d0d8e6;
}

.auth-form input[type="text"],
.auth-form input[type="password"],
.auth-form input[type="email"] {
    width: 100%;
    padding: 8px 12px;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    color: #d0d8e6;
    font-family: Raleway, sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    box-sizing: border-box;
}

.auth-form input:focus {
    background-color: rgba(255, 255, 255, 0.12);
    border-color: #4299e1;
    box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.2);
    outline: none;
}

/* =======================
   Submit Button
   ======================= */
.submit-button {
    width: 100%;
    padding: 0.8rem;
    margin: 1rem 0;
    background: linear-gradient(135deg, #4299e1, #3182ce);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    color: white;
    font-family: Raleway, sans-serif;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.submit-button:hover {
    background: linear-gradient(135deg, #3182ce, #2c5282);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(49, 130, 206, 0.3);
    color: orange;
    text-decoration: underline;
}

.submit-button:active {
    transform: translateY(0);
}

/* =======================
   Form Fields & Error Messages
   ======================= */
.form-field {
    position: relative;
    /*margin-bottom: 15px;*/
    margin-bottom: 0;
}

.error-message {
    color: #d9534f;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* =======================
   Password Wrapper & Toggle
   ======================= */

/* Wrapper around the input + toggle */
.password-wrapper {
    position: relative;
    /* necessary for absolute positioning of toggle */
    width: 100%;
    height: 44px;
    margin-bottom: 10px;
}

/* Password input */
.password-wrapper input[type="password"],
.password-wrapper input[type="text"] {
    width: 100%;
    padding-right: 2.5rem;
    /* space for toggle */
    height: 100%;
    /* fill wrapper height */
    box-sizing: border-box;
    /* include padding in height */
    font-size: 16px;
}

/* Toggle icon */
.password-wrapper .toggle-password {
    position: absolute;
    right: 10px;
    /* distance from edge */
    top: 0;
    height: 100%;
    /* full height of input */
    display: flex;
    align-items: center;
    /* vertical centering */
    justify-content: center;
    /* horizontal centering in its box */
    cursor: pointer;
    font-size: 18px;
    user-select: none;
}

.turnstile-container {
    margin-top: 10px;
    /* ensures spacing no matter what */
}

/* =======================
   Additional Form Adjustments
   ======================= */
.reset-text {
    margin-bottom: 10px;
    font-size: 0.875rem;
}

#acc {
    font-size: 1.1rem;
}

/* Ensure scrolling on small screens */
@media (max-width: 768px) {

    html,
    body {
        overflow-y: auto;
        height: auto;
    }
}