/* ---------------------------------------------------------
   GLOBAL RESET & BASE
--------------------------------------------------------- */
body {
    font-family: 'Poppins', sans-serif;
    height: 100vh;
    margin: 0;
    background: #f0f0f0;
    overflow-x: hidden;
    position: relative;
}

/* Desktop skew background */
body:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 300%;
    background: #f9f9f9;
    transform: skew(-86deg);
    transform-origin: top;
}

/* Hide mobile top bar on desktop */
.mobile-topbar {
    display: none;
}

/* ---------------------------------------------------------
   LOGO (Desktop)
--------------------------------------------------------- */
.br-logo {
    position: absolute;
    top: 60px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 11;
    user-select: none;
}

.logo-image {
    width: 90%;
}

/* ---------------------------------------------------------
   MAIN FORM CONTAINER (Desktop)
--------------------------------------------------------- */
.submit-form {
    position: absolute;
    top: 130px;
    left: 50%;
    transform: translateX(-50%);
    width: 560px;
    background: #ffffff;
    border-radius: 4px;
    color: #333333;
    box-shadow: 0px 6px 15px -1px rgba(0,0,0,0.31);
    overflow: hidden;
    z-index: 10;
    transition: height 0.25s ease;
}

#submitForm {
    width: 560px;
}

/* ---------------------------------------------------------
   RESPONSIVENESS
--------------------------------------------------------- */
@media (max-width: 650px) {
    .submit-form,
    #submitForm {
        width: 94%;
        top: 110px;
        left: 50%;
        transform: translateX(-50%);
    }
    body:before {
        width: 500%;
    }
    .br-logo {
        top: 40px;
    }
}

/* ---------------------------------------------------------
   TABS
--------------------------------------------------------- */
.tab {
    display: flex;
    width: 100%;
    background-color: #366fbc;
    color: #ffffff;
}

.tab button {
    flex: 1;
    font-family: 'Poppins', sans-serif;
    background-color: inherit;
    color: #ffffff;
    border: none;
    cursor: pointer;
    padding: 14px 0;
    font-size: 15px;
    transition: 0.3s;
}

.tab button:hover {
    background-color: #f9f9f9;
    color: #333333;
}

.tab button.active {
    background-color: #ffffff;
    color: #333333;
}

/* ---------------------------------------------------------
   TAB CONTENT
--------------------------------------------------------- */
.tabcontent {
    display: none;
    padding: 20px;
}

.tabTitle {
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 12px;
}

.tabText {
    text-align: center;
    font-size: 14px;
    margin-bottom: 20px;
}

/* ---------------------------------------------------------
   INPUTS
--------------------------------------------------------- */
.full-input,
.half-input-left,
.half-input-right,
.login-email {
    width: 100%;
    height: 40px;
    padding: 6px 10px;
    margin-bottom: 12px;
    border: 1px solid #bbbbbb;
    border-radius: 4px;
    font-size: 14px;
}

.half-input-left,
.half-input-right,
.half-select-right {
    width: calc(50% - 6px);
}

.half-input-left { float: left; }
.half-input-right,
.half-select-right { float: right; }

@media (max-width: 500px) {
    .half-input-left,
    .half-input-right,
    .half-select-right {
        float: none;
        width: 100%;
    }
}

/* ---------------------------------------------------------
   SELECT DROPDOWN — CUSTOM LOOK
--------------------------------------------------------- */
.half-select-right {
    height: 40px;
    padding-left: 10px;
    border: 1px solid #bbbbbb;
    border-radius: 4px;
    background: #ffffff;
    font-size: 14px;
    color: #777777;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23777777" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.half-select-right option {
    color: black;
}

/* ---------------------------------------------------------
   CAPTCHA
--------------------------------------------------------- */
.captcha-container {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    padding: 6px 8px;
    border-radius: 4px;
    border: 1px solid #bbbbbb;
    background: #f2f6fa;
    margin-bottom: 12px;
}

.captcha-answer {
    width: 40px;
    height: 35px;
    text-align: center;
    border: 1px solid #bbbbbb;
    border-radius: 4px;
    margin-right: 6px;
}

.captcha-question {
    width: 70px;
    border: none;
    background: #f2f6fa;
    font-size: 14px;
    user-select: none;
}

.captcha-text {
    font-size: 13px;
    margin-left: auto;
    white-space: nowrap;
}

/* ---------------------------------------------------------
   BUTTONS
--------------------------------------------------------- */
.submit-button-login,
.submit-button-signup {
    width: 100%;
    height: 40px;
    background: #366fbc;
    border-radius: 4px;
    border: none;
    color: #fff;
    cursor: pointer;
    margin-top: 20px;
    font-size: 15px;
}

.submit-button-login:hover,
.submit-button-signup:hover {
    background: #4a7dc2;
}

/* ---------------------------------------------------------
   COPYRIGHT
--------------------------------------------------------- */
.copyright {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 11px;
    bottom: 10px;
}

/* =========================================================
   STRICT MOBILE REDESIGN — DOES NOT TOUCH DESKTOP
========================================================= */
@media (max-width: 650px) {

    /* Remove skew */
    body:before {
        display: none !important;
    }

    /* Mobile top bar */
    .mobile-topbar {
        display: flex !important;
        width: 100%;
        height: 70px;
        background: #f0f0f0;
        align-items: center;
        justify-content: center;
        border-bottom: 1px solid #e0e0e0;
        z-index: 100;
        position: relative;
    }

    .mobile-topbar img {
	width: auto !important;
	height: auto !important;
	max-height: 42px !important; /* prevents overflow while keeping it sharp */
	max-width: 90% !important;   /* prevents accidental stretching */
}

    /* Hide desktop logo */
    .br-logo {
        display: none !important;
    }

    /* Full-width form */
    .submit-form,
    #submitForm {
        position: relative !important;
        width: 100% !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        background: transparent !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Tabs full width */
    .tab {
        width: 100% !important;
        border-radius: 0 !important;
        background: #366fbc !important;
        margin-top: 0 !important;
    }

    .tab button {
        width: 50%;
        padding: 16px 0 !important;
        font-size: 17px;
        background: #366fbc !important;
        color: #ffffff !important;
        border: none !important;
    }

    .tab button.active {
        background: #ffffff !important;
        color: #333333 !important;
    }

    .tab button:hover {
        background: #f9f9f9 !important;
        color: #333333 !important;
    }

    .tabcontent {
        padding: 20px 16px !important;
    }

    /* Inputs full width */
    .full-input,
    .half-input-left,
    .half-input-right,
    .half-select-right,
    .login-email {
        width: 100% !important;
        float: none !important;
        margin-bottom: 14px !important;
    }

    .captcha-container {
        margin-bottom: 18px !important;
    }

    .submit-button-login,
    .submit-button-signup {
        width: 100% !important;
        margin-top: 24px !important;
        height: 46px !important;
        font-size: 17px !important;
        border-radius: 6px !important;
    }

    .copyright {
        display: none !important;
    }
}



/* =========================================================
   FIX NOTIFICATION PAGES (DESKTOP + MOBILE)
========================================================= */
.notification-modal-container {
    width: 90%;
    max-width: 420px;
    margin: 120px auto 0 auto;
    background: #ffffff;
    border-radius: 6px;
    padding: 30px 24px;
    text-align: center;
    box-shadow: 0px 6px 15px -1px rgba(0,0,0,0.31);
    position: relative;
}

.notification-modal-title {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 16px;
    color: #222222;
}

.notification-modal-text {
    font-size: 15px;
    line-height: 1.6;
    color: #444444;
    margin-bottom: 22px;
    text-align: center;
}

.notification-modal-button {
    width: 140px;
    margin: 0 auto;
    background: #366fbc;
    color: #ffffff;
    text-align: center;
    padding: 12px 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
}

@media (max-width: 650px) {
    .notification-modal-container {
        margin-top: 40px;
        width: 92%;
        padding: 26px 18px;
    }
    .notification-modal-title {
        font-size: 20px;
    }
    .notification-modal-text {
        font-size: 14px;
    }
}
