@import url('https://fonts.googleapis.com/css?family=Outfit:400,400i,500,500i,700,700i&amp;display=swap');

/* ===== CRITICAL MOBILE FIXES - MUST BE FIRST ===== */
/* Force hide blue image section on all mobile devices */
@media only screen and (max-width: 991.98px) {
    .wadina-logo-section,
    .business-grap,
    .img {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
    }
}

/* Force mobile layout improvements */
@media only screen and (max-width: 767.98px) {
    .wrap {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    .login-wrap {
        width: 100% !important;
        padding: 30px 20px !important;
    }
    
    .ftco-section {
        padding: 20px 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
    }
    
    .row {
        margin: 0 !important;
        width: 100% !important;
    }
    
    .login-card-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

* {
    font-family: Outfit, sans-serif;
}


body {
    font-family: Outfit, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    font-weight: normal;
    /* Background will be set via inline CSS in login.blade.php */
    color: gray;
    position: relative;
}

.auth-title {
    font-weight: 600;
}

.ftco-section {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    background: transparent;
    position: relative;
}

.wrap {
    width: 100%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    -webkit-box-shadow: 0px 10px 34px -15px rgba(0, 0, 0, 0.24);
    -moz-box-shadow: 0px 10px 34px -15px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0px 10px 34px -15px rgba(0, 0, 0, 0.24);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.wrap-2 {
    width: 425px;
    overflow: hidden;
    background: #fff;
    border-radius: 5px;
    -webkit-box-shadow: 0px 10px 34px -15px rgba(0, 0, 0, 0.24);
    -moz-box-shadow: 0px 10px 34px -15px rgba(0, 0, 0, 0.24);
    box-shadow: 0px 10px 34px -15px rgba(0, 0, 0, 0.24);
}

.msg-wrap-2 {
    width: 425px;
}

.img,
.login-wrap {
    width: 50%;
}

.login-wrap-2 {
    width: 100%;
}

.img {
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.login-wrap {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.login-wrap,
.login-wrap-2 {
    position: relative;
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    font-weight: 300;
    padding: 20px 30px;
}

.logo-area {
    padding-bottom: 20px;
}

.img,
.login-wrap {
    width: 50%;
}

.p-md-5 {
    padding: 3rem !important;
}

.form-group {
    position: relative;
}

.form-group .label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0d1f2d !important;
    font-weight: 700 !important;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 1),
                 0 0 8px rgba(255, 255, 255, 0.8) !important;
    background: rgba(255, 255, 255, 0.6) !important;
    padding: 5px 10px !important;
    border-radius: 5px !important;
    display: inline-block !important;
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    font-weight: 700;
}

.py-10 {
    padding-top: 10px;
    padding-bottom: 10px;
}

label {
    display: inline-block;
    margin-bottom: 0.5rem;
}

.form-control {
    height: 48px;
    background: rgba(255, 255, 255, 0.98) !important;
    color: #000 !important;
    border: 2px solid rgba(0, 0, 0, 0.3) !important;
    font-weight: 500 !important;
}
    font-size: 14px;
    border-radius: 5px;
    -webkit-box-shadow: none;
    box-shadow: none;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

button,
input {
    overflow: visible;
}

input:focus::placeholder {
    transition: all 0.3s;
    padding-left: 10px;
}

input::placeholder {
    transition: all 0.3s;
    font-size: 14px;
}

.btn.btn-primary {
    border: 1px solid transparent !important;
    color: #307ef3;
    background-color: rgba(48, 126, 243, 0.1);
    font-size: 14px;
    font-weight: 500;
    display: block;
    width: 100%;
}

.btn.btn-primary:hover {
    border: 1px solid #307ef3 !important;
}

.checkbox-primary {
    color: #307ef3;
}

.btn-2 {
    height: 48px;
}

.checkbox-wrap {
    display: block;
    position: relative;
    padding-left: 30px;
    margin-bottom: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.checkbox-wrap input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
}

.checkbox-primary {
    color: #e3b04b;
}

.overlay {
    position: absolute;
    background: rgba(5, 13, 24, 0.568);
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 100%;
    padding: 20px;
    display: flex;
    align-items: center;

}

.overlay h4,
.overlay p {
    color: white;

}

.business-grap {
    position: relative;
}

.alert-dismissible .btn-close {
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 12px;
}

.alert-danger {
    color: #f51111 !important;
    background-color: rgb(243 48 48 / 10%) !important;
    border-color: transparent;
}

.alert-success .btn-close {
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%235ABF35 '%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/0.75rem auto no-repeat;
    color: #5ABF35 !important;
}

.alert-success {
    background: #f0fbea !important;
    border-color: transparent;
    color: #0f5132;
}

.alert-danger .btn-close {
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23ff503d'%3e%3cpath d='M.293.293a1 1 0 011.414 0L8 6.586 14.293.293a1 1 0 111.414 1.414L9.414 8l6.293 6.293a1 1 0 01-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 01-1.414-1.414L6.586 8 .293 1.707a1 1 0 010-1.414z'/%3e%3c/svg%3e") center/0.75rem auto no-repeat;
    color: #ff503d !important;
}

.alert-success .alert-heading,
.alert-success .alert-body {
    color: #5ABF35 !important;
}

.forgot-pass-wrap {
    margin-bottom: 5px;

}

.forgot-pass {
    font-weight: 500;
    color: #307ef3;
    text-decoration: underline;
}


.select2-search--dropdown .select2-search__field {
    padding: 4px;
    width: 100%;
    box-sizing: border-box;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border: 1px solid #aaa;
}

[type="search"] {
    outline: none !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
    border-color: #8B5CF6;
    border-radius: 5px;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
    background-color: #D9F2FF;
    color: #143157 !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #EEF9FF;
    color: #143157 !important;
}

.select2-container--default .select2-results>.select2-results__options li {
    font-size: 14px;
    color: #5e5873;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 48px;
    font-size: 14px;
    font-weight: 400;
}

.select2-container--default .select2-selection--single,
.select2-selection .select2-selection--single {
    height: 48px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #888 transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 0;
    left: 50%;
    margin-left: -4px;
    margin-top: -2px;
    position: absolute;
    top: 50%;
    width: 0;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 26px;
    position: absolute;
    top: 10px;
    right: 1px;
    width: 20px;
}

.wrap-2 {
    width: 425px;
}

.login-wrap-2 {
    width: 100%;
}

.login-card-wrapper-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.login-button {
    color: white;
    text-decoration: none;
    padding: 8.5px 21px !important;
    border-radius: 0.358rem !important;
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    background: linear-gradient(135deg, #1565C0 0%, #1976D2 100%) !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(21, 101, 192, 0.3) !important;
    width: 100%;
}

.login-button:active,
.login-button:hover {
    background: linear-gradient(135deg, #0D47A1 0%, #1565C0 100%) !important;
    box-shadow: 0 8px 25px rgba(21, 101, 192, 0.4) !important;
    color: white !important;
    border-color: transparent !important;
    transform: translateY(-2px);
}

.form-control.is-invalid:focus,
.was-validated .form-control:invalid:focus {
    border-color: var(--bs-form-invalid-border-color) !important;
    box-shadow: 0 0 0 .25rem rgba(var(--bs-danger-rgb), .25) !important;
}

.form-control.is-invalid,
.was-validated .form-control:invalid {
    border-color: var(--bs-form-invalid-border-color) !important;
}

/*  Tablet PC: 992px.
    Gutters: 24px.
    Outer margins: 28px.
    Inherits styles from: Default Layout.
-----------------------------------------------------------------
cols    1     2      3      4      5      6      7      8
px      68    160    252    344    436    528    620    712    */
@media only screen and (min-width: 992px) and (max-width: 1199.98px) {}

/*  Tablet Mobile: 768px.
    Gutters: 24px.
    Outer margins: 28px.
    Inherits styles from: Default Layout.
-----------------------------------------------------------------
cols    1     2      3      4      5      6      7      8
px      68    160    252    344    436    528    620    712    */
@media only screen and (min-width: 768px) and (max-width: 991.98px) {
    /* Force hide blue image section */
    .business-grap,
    .wadina-logo-section,
    .img {
        display: none !important;
    }

    .wrap {
        width: 100%;
        max-width: 500px;
    }

    .login-wrap {
        width: 100%;
    }

    .login-card-wrapper {
        display: flex;
        justify-content: center;
    }
    
    /* Tablet improvements */
    .ftco-section {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .auth-title {
        font-size: 22px !important;
        text-align: center;
    }
    
    .form-control {
        height: 55px;
        font-size: 16px;
    }
    
    .login-button {
        height: 55px !important;
        font-size: 17px !important;
    }
}

/*  Mobile : 576px.
    Gutters: 24px.
    Outer margins: 28px.
    Inherits styles from: Default Layout.
-----------------------------------------------------------------
cols    1     2      3      4      5      6      7      8
px      68    160    252    344    436    528    620    712    */
@media only screen and (min-width: 576px) and (max-width: 767.98px) {
    /* Force hide blue image section */
    .business-grap,
    .wadina-logo-section,
    .img {
        display: none !important;
    }

    .wrap {
        width: 100%;
        max-width: 450px;
    }

    .login-wrap {
        width: 100%;
    }

    .login-card-wrapper {
        display: flex;
        justify-content: center;
    }
    
    /* Medium mobile improvements */
    .ftco-section {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .auth-title {
        font-size: 21px !important;
        text-align: center;
    }
    
    .form-control {
        height: 55px;
        font-size: 16px;
    }
    
    .login-button {
        height: 55px !important;
        font-size: 17px !important;
    }
}


/*  Mobile Small Device: 450px.
    Gutters: 24px.
    Outer margins: 28px.
    Inherits styles from: Default Layout.
-----------------------------------------------------------------
cols    1     2      3      4      5      6      7      8
px      68    160    252    344    436    528    620    712    */
@media only screen and (min-width: 450px) and (max-width: 575.98px) {
    /* Force hide blue image section */
    .business-grap,
    .wadina-logo-section,
    .img {
        display: none !important;
    }

    .wrap {
        width: 100%;
        max-width: 400px;
    }

    .login-wrap {
        width: 100%;
    }

    .login-card-wrapper {
        display: flex;
        justify-content: center;
    }
    
    /* Small mobile improvements */
    .ftco-section {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .auth-title {
        font-size: 20px !important;
        text-align: center;
    }
    
    .form-control {
        height: 55px;
        font-size: 16px;
    }
    
    .login-button {
        height: 55px !important;
        font-size: 17px !important;
    }
}

/*  Mobile Small Device: 320px.
    Gutters: 24px.
    Outer margins: 28px.
    Inherits styles from: Default Layout.
-----------------------------------------------------------------
cols    1     2      3      4      5      6      7      8
px      68    160    252    344    436    528    620    712    */
@media only screen and (min-width: 320px) and (max-width: 449.98px) {
    /* Force hide blue image section */
    .business-grap,
    .wadina-logo-section,
    .img {
        display: none !important;
    }

    .wrap {
        width: 100%;
    }

    .login-wrap {
        width: 100%;
    }

    .login-card-wrapper {
        display: flex;
        justify-content: center;
    }

    .login-parent-wrapper{
        width: 100%;
    }

    .login-wrap,
    .login-wrap-2 {
        padding: 30px 20px;
    }

    .wrap-2 {
        width: 100%;
    }

    .login-wrap-2 {
        width: 100%;
    }

    .login-card-wrapper-2 {
        display: flex;
        justify-content: center;
        align-items: center;
        flex-direction: column;
    }
    
    /* Extra small mobile improvements */
    .ftco-section {
        padding: 15px 5px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .container {
        padding: 0 10px !important;
    }
    
    .auth-title {
        font-size: 18px !important;
        margin-bottom: 25px !important;
    }
    
    .form-control {
        height: 50px;
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .login-button {
        height: 50px !important;
        font-size: 16px !important;
    }
    
    .logo-area img {
        max-width: 250px;
    }
    
    .login-wrap {
        padding: 35px 20px !important;
    }
}

.select2-container {
    border: 1px solid #dfdbdb;
}

.login_btn_click {
    font-size: 26px !important;
    padding: 5px 15px;
    display: flex !important;
    justify-content: center;
    align-items: center;
    width: unset !important;
}

/* ===== Wadina Dairy Custom Styles ===== */
.wadina-logo-section {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Force hide blue image section on all mobile devices */
@media only screen and (max-width: 991.98px) {
    .wadina-logo-section,
    .business-grap,
    .img {
        display: none !important;
    }
}

.wadina-logo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    backdrop-filter: none;
}

.wadina-logo-container {
    text-align: center;
    z-index: 2;
    position: relative;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.wadina-login-logo {
    width: 350px;
    height: 350px;
    border-radius: 15px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
    padding: 15px;
}

.wadina-login-logo:hover {
    transform: scale(1.05);
}

.wadina-brand-name {
    color: #fff !important;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-family: 'Cairo', 'Outfit', sans-serif;
}

.wadina-tagline {
    color: #E8F5E8 !important;
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    font-family: 'Cairo', 'Outfit', sans-serif;
}

/* Update form styling to match Wadina theme */
.form-control:focus {
    border-color: #1976D2 !important;
    box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.25) !important;
}

.auth-title {
    color: #0d1f2d !important;
    font-family: 'Cairo', 'Outfit', sans-serif;
    text-align: center !important;
    font-weight: 700 !important;
    text-shadow: 2px 2px 6px rgba(255, 255, 255, 1), 
                 0 0 10px rgba(255, 255, 255, 0.8),
                 0 0 20px rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.7) !important;
    padding: 10px 15px !important;
    border-radius: 8px !important;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.label {
    color: #1565C0 !important;
    font-weight: 500;
    font-family: 'Cairo', 'Outfit', sans-serif;
}

.forgot-pass {
    color: #1976D2 !important;
}

.forgot-pass:hover {
    color: #0D47A1 !important;
}

/* Responsive adjustments for Wadina design */
@media only screen and (max-width: 767.98px) {
    /* Force hide the blue image section on mobile */
    .wadina-logo-section,
    .business-grap,
    .img {
        display: none !important;
    }
    
    .wadina-login-logo {
        width: 100px;
        height: 100px;
    }
    
    .wadina-brand-name {
        font-size: 20px;
    }
    
    .wadina-tagline {
        font-size: 14px;
    }
    
    /* Mobile-specific improvements */
    .ftco-section {
        padding: 20px 10px;
        min-height: 100vh;
        height: auto;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
    }
    
    .row {
        margin: 0 !important;
        width: 100% !important;
    }
    
    .login-card-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .login-parent-wrapper {
        width: 100% !important;
        margin: 0 !important;
    }
    
    .wrap {
        width: 100% !important;
        margin: 0 !important;
        border-radius: 15px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
    }
    
    .login-wrap {
        padding: 40px 25px !important;
        width: 100% !important;
        margin: 0 !important;
    }
    
    .auth-title {
        font-size: 20px !important;
        text-align: center;
        margin-bottom: 30px !important;
        line-height: 1.4;
        color: #1565C0 !important;
        font-weight: 600 !important;
    }
    
    .form-control {
        height: 55px;
        font-size: 16px;
        border-radius: 10px;
        border: 2px solid #e0e0e0;
        transition: all 0.3s ease;
        margin-bottom: 20px;
    }
    
    .form-control:focus {
        border-color: #1976D2 !important;
        box-shadow: 0 0 0 0.2rem rgba(25, 118, 210, 0.15) !important;
        transform: translateY(-2px);
    }
    
    .label {
        font-size: 15px;
        margin-bottom: 10px;
        font-weight: 600;
        color: #1565C0 !important;
    }
    
    .login-button {
        height: 55px !important;
        font-size: 17px !important;
        border-radius: 10px !important;
        margin-top: 25px;
        font-weight: 600 !important;
    }
    
    .logo-area {
        margin-bottom: 30px;
        text-align: center;
    }
    
    .logo-area img {
        max-width: 250px;
        height: auto;
    }
    
    .forgot-pass-wrap {
        margin-top: 20px;
        text-align: center;
    }
    
    .forgot-pass {
        font-size: 15px;
        font-weight: 500;
    }
    
    .demo-info {
        margin-top: 25px !important;
        padding: 20px !important;
        font-size: 14px;
        border-radius: 10px;
    }
    
    .demo-info h6 {
        font-size: 16px;
        margin-bottom: 10px;
    }
}

/* ===== FINAL OVERRIDE RULES - MUST BE LAST ===== */
/* Ultimate mobile fixes */
@media only screen and (max-width: 991.98px) {
    .wadina-logo-section,
    .business-grap,
    .img {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    .wrap {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    .login-wrap {
        width: 100% !important;
        padding: 30px 20px !important;
    }
    
    .ftco-section {
        padding: 20px 10px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 15px !important;
    }
    
    .row {
        margin: 0 !important;
        width: 100% !important;
    }
    
    .login-card-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .auth-title {
        font-size: 20px !important;
        text-align: center !important;
        margin-bottom: 30px !important;
        color: #1565C0 !important;
        font-weight: 600 !important;
    }
    
    .form-control {
        height: 55px !important;
        font-size: 16px !important;
        border-radius: 10px !important;
        border: 2px solid #e0e0e0 !important;
        margin-bottom: 20px !important;
    }
    
    .login-button {
        height: 55px !important;
        font-size: 17px !important;
        border-radius: 10px !important;
        margin-top: 25px !important;
        font-weight: 600 !important;
    }
    
    .logo-area {
        margin-bottom: 30px !important;
        text-align: center !important;
    }
    
    .logo-area img {
        max-width: 250px !important;
        height: auto !important;
    }
}