/* =========================================================
   AMAR SEVA SANGAM
   DAILY FOOD REQUIREMENT & BILLING MANAGEMENT
   LOGIN PAGE
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    overflow: hidden;
}


/* =========================================================
   MAIN BACKGROUND
========================================================= */

.login-page {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
    background-image: url("../assets/image/food-login-background.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}


    /* =========================================================
   LIGHT OVERLAY
========================================================= */

    .login-page::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient( 90deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.00) 55%, rgba(255,255,255,0.08) 100% );
    }


/* =========================================================
   TOP RIGHT BRAND
========================================================= */

.top-brand {
    position: absolute;
    z-index: 10;
    top: 20px;
    right: 7%;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #12396f;
}


.top-brand-logo {
    width: 105px;
    height: 105px;
    object-fit: contain;
    border-radius: 50%;
    background: #ffffff;
    padding: 5px;
    border: 3px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 18px rgba(20, 55, 90, 0.18);
    flex-shrink: 0;
}


.top-brand-content {
    min-width: 350px;
}


.top-brand-title {
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.8px;
    white-space: nowrap;
}


.top-brand-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 9px;
    color: #00a98f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
}


    .top-brand-tagline span {
        display: block;
        width: 75px;
        height: 2px;
        background: #00a98f;
    }


/* =========================================================
   LOGIN WRAPPER
========================================================= */

.login-wrapper {
    position: absolute;
    z-index: 20;
    top: 50%;
    right: 7%;
    width: 480px;
    transform: translateY(-45%);
}


/* =========================================================
   LOGIN CARD
========================================================= */

.login-card {
    width: 100%;
    padding: 30px 40px 28px;
    background: rgba(255,255,255,0.97);
    border: 1px solid rgba(255,255,255,0.95);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(20,55,90,0.22), 0 4px 16px rgba(20,55,90,0.08);
    backdrop-filter: blur(5px);
}


/* =========================================================
   FOOD ICON
========================================================= */

.login-icon {
    width: 112px;
    height: 112px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    border-radius: 50%;
    color: #fff;
    font-size: 48px;
    background: linear-gradient( 145deg, #10c8a4 0%, #0877dc 100% );
    border: 6px solid rgba(255,255,255,0.98);
    box-shadow: 0 10px 30px rgba(10,125,190,0.25);
}


/* =========================================================
   LOGIN TITLE
========================================================= */
.login-card h2 {
    margin: 0 0 22px;
    text-align: center;
    color: #12396f;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
}


.login-subtitle {
    margin: 8px 0 25px;
    text-align: center;
    color: #7184a3;
    font-size: 14px;
    line-height: 1.45;
}


/* =========================================================
   FORM
========================================================= */

.form-group {
    margin-bottom: 17px;
}


    .form-group label {
        display: block;
        margin-bottom: 7px;
        color: #102f60;
        font-size: 14px;
        font-weight: 700;
    }


/* =========================================================
   INPUT
========================================================= */

.input-wrapper {
    position: relative;
}


.input-icon {
    position: absolute;
    z-index: 3;
    left: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #7195c7;
    font-size: 17px;
}


.login-input {
    width: 100%;
    height: 56px;
    padding: 0 48px 0 49px;
    border: 1px solid #cbd9eb;
    border-radius: 11px;
    outline: none;
    background: #fff;
    color: #263f67;
    font-size: 15px;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}


    .login-input::placeholder {
        color: #91a4c2;
    }


    .login-input:focus {
        border-color: #087de0;
        box-shadow: 0 0 0 3px rgba(8,125,224,0.10);
    }


/* =========================================================
   PASSWORD EYE
========================================================= */

.password-toggle {
    position: absolute;
    z-index: 4;
    right: 17px;
    top: 50%;
    transform: translateY(-50%);
    color: #7187a7;
    cursor: pointer;
    font-size: 17px;
}


    .password-toggle:hover {
        color: #087ce0;
    }


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-button {
    width: 100%;
    height: 57px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin-top: 6px;
    border: none;
    border-radius: 11px;
    color: #fff;
    background: linear-gradient( 100deg, #087cde 0%, #0dc2a4 100% );
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 9px 22px rgba(8,126,218,0.23);
    transition: transform .2s ease, box-shadow .2s ease;
}


    .login-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 13px 27px rgba(8,126,218,0.30);
    }


    .login-button:disabled {
        opacity: .65;
        cursor: not-allowed;
    }


/* =========================================================
   FORGOT PASSWORD
========================================================= */

.forgot-password {
    text-align: center;
    margin-top: 18px;
}


    .forgot-password a {
        color: #0872e8;
        font-size: 14px;
        font-weight: 600;
        text-decoration: none;
    }


        .forgot-password a:hover {
            text-decoration: underline;
        }


    .forgot-password i {
        margin-right: 7px;
    }


/* =========================================================
   SECURITY BOX
========================================================= */

.security-box {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 23px;
    padding: 14px 16px;
    border-radius: 11px;
    background: #edf7ff;
}


.security-icon {
    width: 42px;
    height: 42px;
    min-width: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient( 145deg, #1aa89c, #2776c5 );
    font-size: 18px;
}


.security-content strong {
    display: block;
    color: #526f96;
    font-size: 12px;
    font-weight: 700;
}


.security-content span {
    display: block;
    color: #7187a6;
    font-size: 11px;
    margin-top: 3px;
}


/* =========================================================
   LARGE SCREEN
========================================================= */

@media (min-width: 1600px) {

    .top-brand {
        right: 7%;
        top: 20px;
    }

    .top-brand-logo {
        width: 115px;
        height: 115px;
    }

    .top-brand-title {
        font-size: 30px;
    }

    .login-wrapper {
        right: 7%;
        width: 500px;
    }

    .login-card {
        padding: 32px 42px 30px;
    }
}


/* =========================================================
   LAPTOP
========================================================= */

@media (max-width: 1200px) {

    .top-brand {
        right: 4%;
    }

    .top-brand-logo {
        width: 85px;
        height: 85px;
    }

    .top-brand-content {
        min-width: 300px;
    }

    .top-brand-title {
        font-size: 29px;
    }

    .login-wrapper {
        right: 4%;
        width: 410px;
    }

    .login-card {
        padding: 28px 34px 26px;
    }

    .login-icon {
        width: 95px;
        height: 95px;
        font-size: 41px;
    }

    .login-card h2 {
        font-size: 29px;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    body {
        overflow-y: auto;
    }

    .login-page {
        height: auto;
        min-height: 100vh;
        padding: 30px 20px 40px;
        background-position: center center;
    }

    .top-brand {
        position: relative;
        top: auto;
        right: auto;
        width: fit-content;
        margin: 0 auto 25px;
        justify-content: center;
    }

    .top-brand-logo {
        width: 70px;
        height: 70px;
    }

    .top-brand-content {
        min-width: auto;
    }

    .top-brand-title {
        font-size: 25px;
    }

    .top-brand-tagline {
        font-size: 9px;
        letter-spacing: 2px;
    }

        .top-brand-tagline span {
            width: 45px;
        }

    .login-wrapper {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
        transform: none;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .login-page {
        padding: 20px 14px 30px;
        background-position: center;
    }

    .top-brand {
        gap: 8px;
        margin-bottom: 18px;
    }

    .top-brand-logo {
        width: 58px;
        height: 58px;
    }

    .top-brand-title {
        font-size: 21px;
    }

    .top-brand-tagline {
        margin-top: 6px;
        font-size: 7px;
        letter-spacing: 1.5px;
        gap: 7px;
    }

        .top-brand-tagline span {
            width: 30px;
        }

    .login-card {
        padding: 25px 20px 23px;
        border-radius: 20px;
    }

    .login-icon {
        width: 82px;
        height: 82px;
        font-size: 35px;
        border-width: 5px;
    }

    .login-card h2 {
        font-size: 27px;
    }

    .login-subtitle {
        font-size: 13px;
        margin-bottom: 22px;
    }

    .login-input {
        height: 52px;
        font-size: 14px;
    }

    .login-button {
        height: 53px;
        font-size: 16px;
    }
}

/* =========================================================
   AMAR SEVA SANGAM
   CHANGE PASSWORD PAGE
========================================================= */

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    overflow: hidden;
}


/* =========================================================
   MAIN BACKGROUND
========================================================= */

.change-password-page {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 650px;
    overflow: hidden;
    background-image: url("../assets/image/food-login-background.png");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}


    /* =========================================================
   LIGHT OVERLAY
========================================================= */

    .change-password-page::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background: linear-gradient( 90deg, rgba(255,255,255,0.02) 0%, rgba(255,255,255,0.00) 55%, rgba(255,255,255,0.08) 100% );
    }


/* =========================================================
   TOP RIGHT BRAND
========================================================= */

.top-brand {
    position: absolute;
    z-index: 10;
    top: 20px;
    right: 7%;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #12396f;
}


.top-brand-logo {
    width: 105px;
    height: 105px;
    object-fit: contain;
    flex-shrink: 0;
}


.top-brand-content {
    min-width: 350px;
}


.top-brand-title {
    font-size: 30px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: -0.8px;
    white-space: nowrap;
}


.top-brand-tagline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 9px;
    color: #00a98f;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 4px;
}


    .top-brand-tagline span {
        display: block;
        width: 75px;
        height: 2px;
        background: #00a98f;
    }


/* =========================================================
   CHANGE PASSWORD WRAPPER
========================================================= */

.change-password-wrapper {
    position: absolute;
    z-index: 20;
    top: 50%;
    right: 7%;
    width: 480px;
    transform: translateY(-47%);
}


/* =========================================================
   CARD
========================================================= */

.change-password-card {
    width: 100%;
    padding: 27px 40px 25px;
    background: rgba(255,255,255,0.97);
    border: 1px solid rgba(255,255,255,0.95);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(20,55,90,0.22), 0 4px 16px rgba(20,55,90,0.08);
    backdrop-filter: blur(5px);
}


/* =========================================================
   KEY ICON
========================================================= */

.password-icon {
    width: 82px;
    height: 82px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    border-radius: 50%;
    color: #fff;
    font-size: 34px;
    background: linear-gradient( 145deg, #10c8a4, #0877dc );
    border: 5px solid rgba(255,255,255,0.98);
    box-shadow: 0 9px 25px rgba(10,125,190,0.23);
}


/* =========================================================
   TITLE
========================================================= */

.change-password-card h2 {
    margin: 0;
    text-align: center;
    color: #12396f;
    font-size: 29px;
    line-height: 1.15;
    font-weight: 800;
}


.password-subtitle {
    margin: 7px 0 20px;
    text-align: center;
    color: #7184a3;
    font-size: 13px;
    line-height: 1.4;
}


/* =========================================================
   FORM
========================================================= */

.form-group {
    margin-bottom: 15px;
}


    .form-group label {
        display: block;
        margin-bottom: 6px;
        color: #102f60;
        font-size: 13px;
        font-weight: 700;
    }


/* =========================================================
   INPUT
========================================================= */

.input-wrapper {
    position: relative;
}


.input-icon {
    position: absolute;
    z-index: 3;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #7195c7;
    font-size: 15px;
}


.custom-input {
    width: 100%;
    height: 48px;
    padding: 0 43px 0 45px;
    border: 1px solid #cbd9eb;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: #263f67;
    font-size: 14px;
    box-shadow: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}


    .custom-input::placeholder {
        color: #91a4c2;
    }


    .custom-input:focus {
        border-color: #087de0;
        box-shadow: 0 0 0 3px rgba(8,125,224,0.10);
    }


/* =========================================================
   EMPLOYEE ID + OTP BUTTON
========================================================= */

.otp-row {
    display: flex;
    align-items: center;
    gap: 8px;
}


.employee-input {
    flex: 1;
}


.otp-button {
    height: 48px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    border: 1px solid #087ddd;
    border-radius: 9px;
    color: #0875d8;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}


    .otp-button:hover:not(:disabled) {
        color: #fff;
        background: linear-gradient( 100deg, #087cde, #0dc2a4 );
        border-color: transparent;
    }


    .otp-button:disabled {
        opacity: .60;
        cursor: not-allowed;
    }


    .otp-button i {
        font-size: 12px;
    }


/* =========================================================
   OTP SUCCESS
========================================================= */

.otp-success {
    margin-top: 5px;
    color: #07956f;
    font-size: 11px;
    font-weight: 600;
}


    .otp-success i {
        margin-right: 4px;
    }


/* =========================================================
   PASSWORD TOGGLE
========================================================= */

.password-toggle {
    position: absolute;
    z-index: 4;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #7187a7;
    cursor: pointer;
    font-size: 15px;
}


    .password-toggle:hover {
        color: #087ce0;
    }


/* =========================================================
   PASSWORD RULES
========================================================= */

.password-rules {
    margin-top: 9px;
    padding: 10px 13px;
    border-radius: 9px;
    background: #f5f9fd;
    border: 1px solid #e3edf7;
}


.rules-title {
    margin-bottom: 7px;
    color: #526f96;
    font-size: 15px;
    font-weight: 700;
}


    .rules-title i {
        margin-right: 5px;
        color: #087ddd;
    }


.password-rule {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1.2;
    transition: color .15s ease;
}


    .password-rule i {
        width: 13px;
        font-size: 11px;
    }


.rule-valid {
    color: #07956f;
}


.rule-invalid {
    color: #d64a54;
}


/* =========================================================
   UPDATE PASSWORD BUTTON
========================================================= */

.update-password-button {
    width: 100%;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 15px;
    border: none;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient( 100deg, #087cde, #0dc2a4 );
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(8,126,218,0.20);
    transition: transform .2s ease, box-shadow .2s ease;
}


    .update-password-button:hover:not(:disabled) {
        transform: translateY(-2px);
        box-shadow: 0 12px 25px rgba(8,126,218,0.27);
    }


    .update-password-button:disabled {
        opacity: .55;
        cursor: not-allowed;
    }


/* =========================================================
   LOGIN LINK
========================================================= */

.login-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 15px;
    font-size: 15px;
}


    .login-link span {
        color: #7b8da8;
    }


    .login-link a {
        color: #0872e8;
        font-weight: 700;
        text-decoration: none;
    }


        .login-link a:hover {
            text-decoration: underline;
        }


        .login-link a i {
            margin-left: 3px;
            font-size: 9px;
        }


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1600px) {

    .top-brand {
        right: 7%;
    }

    .top-brand-logo {
        width: 115px;
        height: 115px;
    }

    .top-brand-title {
        font-size: 30px;
    }

    .change-password-wrapper {
        right: 7%;
        width: 500px;
    }
}


/* =========================================================
   LAPTOP
========================================================= */

@media (max-width: 1200px) {

    .top-brand {
        right: 4%;
    }

    .top-brand-logo {
        width: 85px;
        height: 85px;
    }

    .top-brand-content {
        min-width: 300px;
    }

    .top-brand-title {
        font-size: 29px;
    }

    .change-password-wrapper {
        right: 4%;
        width: 420px;
    }

    .change-password-card {
        padding: 25px 32px 23px;
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 900px) {

    body {
        overflow-y: auto;
    }

    .change-password-page {
        height: auto;
        min-height: 100vh;
        padding: 30px 20px 40px;
    }

    .top-brand {
        position: relative;
        top: auto;
        right: auto;
        width: fit-content;
        margin: 0 auto 25px;
    }

    .top-brand-logo {
        width: 70px;
        height: 70px;
    }

    .top-brand-content {
        min-width: auto;
    }

    .top-brand-title {
        font-size: 25px;
    }

    .top-brand-tagline {
        font-size: 9px;
        letter-spacing: 2px;
    }

        .top-brand-tagline span {
            width: 45px;
        }

    .change-password-wrapper {
        position: relative;
        top: auto;
        right: auto;
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
        transform: none;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .change-password-page {
        padding: 20px 14px 30px;
    }

    .top-brand {
        gap: 8px;
        margin-bottom: 18px;
    }

    .top-brand-logo {
        width: 58px;
        height: 58px;
    }

    .top-brand-title {
        font-size: 21px;
    }

    .top-brand-tagline {
        margin-top: 6px;
        font-size: 7px;
        letter-spacing: 1.5px;
        gap: 7px;
    }

        .top-brand-tagline span {
            width: 30px;
        }

    .change-password-card {
        padding: 23px 18px 22px;
        border-radius: 20px;
    }

    .password-icon {
        width: 72px;
        height: 72px;
        font-size: 30px;
    }

    .change-password-card h2 {
        font-size: 25px;
    }

    .password-subtitle {
        font-size: 12px;
    }

    .otp-row {
        align-items: stretch;
    }

    .otp-button {
        padding: 0 10px;
    }

        .otp-button span {
            display: none;
        }

    .custom-input {
        height: 49px;
    }

    .password-rule {
        font-size: 9px;
    }
}
