/* .ads-container {
    width: 100%;
    overflow: hidden !important;
    padding: 10px 0;
}

.ads-slider {
    display: flex;
    gap: 8px;
    animation: scroll-left 18s linear infinite;

}

.ads-slider img {
    width: 220px;
    min-width: 220px;
    height: 220px;
    object-fit: cover;
    border: 1px solid #ccc;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-100%);
    }

}

.ads-container,
.ads-slider {
    position: relative !important;
    z-index: -1 !important;
}

 */

/* ===== ADS CONTAINER ===== */

.ads-container {
    width: 100%;
    overflow: hidden;
    padding: 12px 0;
}

/* ===== SLIDER TRACK ===== */

.ads-slider {
    display: flex;
    width: max-content;
    /* ⭐ VERY IMPORTANT */
    gap: 18px;
    animation: scroll-left 50s linear infinite;
}

/* Pause on hover */
.ads-slider:hover {
    animation-play-state: paused;
}

/* ===== ADS IMAGES ===== */

.ads-slider img {

    width: 40vw;
    height: 20vw;
    /* ⭐ Use viewport width */
    flex-shrink: 0;
    /* ⭐ Prevent resizing */

    aspect-ratio: 3 / 2;

    object-fit: cover;

    border-radius: 10px;
    border: 1px solid #ccc;

    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* ===== PERFECT LOOP ANIMATION ===== */

@keyframes scroll-left {

    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }

}

/* .ads-slider:hover {
    animation-play-state: paused;
}

.ads-slider img {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
} */

#middle_right,
#banner_bottom {
    position: relative;
    z-index: 1 !important;
}


#middle_left_buttons {
    width: 227px;
    margin-top: 40px;
    font-family: Arial, Helvetica, sans-serif;
}

#middle_left_buttons {
    overflow: hidden;
}

#middle_left_buttons h2 {
    font-size: 13px;
    font-weight: bold;
    color: #f9fbf8;
    padding: 0 14px;
    margin: 15px 0px 10x 0px;

}

.join-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.join-menu li {
    width: 200px;
    margin: 0 0 8px 14px;
    /* background-image: url(../images/navi_bg.jpg); */
    /* same vibe as sddm */
    background-color: #F0E9BF;
    border-radius: 10px;
}

.join-menu li a {
    display: block;
    width: 100%;
    padding: 6px 0;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: bold;
    color: #333333;
    background-color: #F0E9BF;
    border-radius: 10px;
}

.join-menu li a:hover {
    /* color: #ffffff; */
    background-color: #fffef7;
}

#m1,
#m2,
#m3,
#m4,
#m5,
#m6 {
    z-index: 10;
}



/* ===============================
   REGISTRATION BOX
================================ */

.registration-box {
    box-sizing: border-box;
    background: #f5ede0;
    border: 1px solid #d6bc96;
    padding: 25px;
    width: 720px;
    margin: 30px 5px 20px auto;
    border-radius: 8px;
}

.registration-box * {
    box-sizing: border-box;
}

.registration-box h2 {
    text-align: center;
    color: #6f4726;
    margin-bottom: 25px;
    font-size: 22px;
}

/* ===============================
   FORM GRID
================================ */

.registration-box form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 28px;
    row-gap: 16px;
}

/* ===============================
   LABEL
================================ */

.form-row label {
    display: block;
    font-size: 15px;
    /* smaller */
    font-weight: 600;
    color: #5a3a1e;
    margin-bottom: 4px;
}

/* ===============================
   INPUTS
================================ */

.form-row input,
.form-row select {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #cdb189;
    background: #fffaf3;
    font-size: 17px;
    border-radius: 6px;
    transition: 0.2s ease;
}

.form-row input:focus,
.form-row select:focus {
    border-color: #7b4f2c;
    box-shadow: 0 0 4px rgba(123, 79, 44, 0.25);
    outline: none;
}

/* ===============================
   BUTTON
================================ */

.form-row button {
    width: 220px;
    padding: 10px;
    background: #7b4f2c;
    color: #fff;
    border: none;
    cursor: pointer;
    font-weight: bold;
    margin: 25px auto 5px auto;
    border-radius: 8px;
    font-size: 16px;
    transition: 0.25s ease;
}

.form-row button:hover {
    background: #5e3a1a;
    transform: scale(1.03);
}

/* span both columns */
.form-row:last-child {
    grid-column: 1 / 3;
}

/* ===============================
   SUCCESS / ERROR
================================ */

.success-msg {
    text-align: center;
    color: #2e7d32;
    margin-bottom: 12px;
    font-weight: bold;
}

.error-msg {
    text-align: center;
    color: #b00020;
    font-weight: bold;
    margin-bottom: 12px;
}

/* ===============================
   LABEL-INPUT STACK
================================ */

.registration-box .form-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.registration-box .form-row label,
.registration-box .form-row input,
.registration-box .form-row select {
    float: none !important;
    width: 100%;
}

/* ===============================
   REQUIRED STAR
================================ */

.req {
    color: #d32f2f;
    font-weight: bold;
}

/* ===============================
   ROLE TOGGLE
================================ */

.role-toggle {
    text-align: center;
    margin: 40px 0 20px 0;
    /* more top space */
}

/* Toggle buttons */
.role-toggle button {
    padding: 7px 16px;
    margin: 6px;
    border: none;
    background: #e8d7bd;
    /* lighter theme color */
    color: #6f4726;
    cursor: pointer;
    font-size: 14px;
    /* smaller font */
    border-radius: 6px;
    transition: 0.25s ease;
}

/* Hover */
.role-toggle button:hover {
    background: #d9c3a3;
}

/* Selected toggle */
.role-toggle button.active {
    background: #7b4f2c;
    color: white;
    transform: scale(0.92);
    /* zoom-out effect */
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* ===============================
   SMALL UX TOUCH
================================ */

/* smooth appearance */
.registration-box {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===============================
   MESSAGE BOX
================================ */

.message-box {
    width: 670px;
    margin: 20px 5px 20px auto;
    padding: 20px;
    border-radius: 8px;
    background: #f5ede0;
    border: 1px solid #d6bc96;
    text-align: center;
    animation: fadeIn 0.4s ease;
}

.message-box p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Success Theme */
.msg-success {
    color: #2e7d32;
    border-left: 6px solid #4caf50;
}

/* Error Theme */
.msg-error {
    color: #b00020;
    border-left: 6px solid #e57373;
}

/* ===============================
   LOGIN BUTTON
================================ */
.login-field-group {
    width: 80%;
    margin: 0 auto;
}

.login-btn {
    display: block;
    padding: 10px 24px;
    background: #7b4f2c;
    color: #fff !important;
    cursor: pointer;
    text-decoration: none;
    font-weight: bold;
    border-radius: 7px;
    font-size: 15px;
    transition: 0.25s ease;
    margin: 15px auto 0 auto;
    /* centers button */
    width: fit-content;
}

.login-btn:hover {
    background: #9a6a44;
    transform: scale(1.04);
}




/* ===============================
   LOGIN CONTAINER
================================ */

.login-container {
    width: 400px;
    margin: 40px auto 20px auto;
    padding: 25px;
    background: #f5ede0;
    border: 1px solid #d6bc96;
    border-radius: 8px;
    animation: fadeIn 0.4s ease;
}

.login-container h2 {
    text-align: center;
    color: #6f4726;
    margin-bottom: 25px;
}

/* ===============================
   LOGIN LABEL
================================ */
.login-label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #5a3a1e;
    margin-bottom: 4px;
}



/* ===============================
   LOGIN INPUT
================================ */

.login-input {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #cdb189;
    background: #fffaf3;
    font-size: 17px;
    border-radius: 6px;
    margin-bottom: 15px;
    transition: 0.2s ease;
}



.login-input:focus {
    border-color: #7b4f2c;
    box-shadow: 0 0 4px rgba(123, 79, 44, 0.25);
    outline: none;
}

.forgot-link {
    display: block;
    /* VERY IMPORTANT */
    width: 108%;
    /* Match input width */
    margin: 0 auto 10px auto;
    text-align: right;

    font-size: 12px;
    color: #7b4f2c;
    text-decoration: none;
    transition: 0.2s ease;
}

.forgot-link:hover {
    color: #0d47a1;
    text-decoration: underline;
}


.forgot-wrapper {
    text-align: right;
    box-sizing: border-box;
    margin: 5px 0px 6px 0px;
}

/* ===============================
   BACK TO LOGIN LINK
================================ */

.back-login-wrapper {
    text-align: center;
    margin-top: 15px;
}

.back-login-link {
    font-size: 14px;
    color: #7b4f2c;
    text-decoration: none;
    transition: 0.2s ease;
}

.back-login-link:hover {
    color: #0d47a1;
    text-decoration: underline;
}