﻿@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
    text-decoration: none;
    list-style: none;
}

.material-symbols-outlined {
    font-variation-settings: "FILL" 1, "wght" 400, "GRAD" 0, "opsz" 24;
}

body {
    background: linear-gradient(90deg, #ffffff 0%, rgb(218 255 225) 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .sticky-icon {
        display: none;
    }
}

@media (min-width: 768px) {
    form {
        flex-direction: row;
        height: 550px;
    }
}

@media (max-width: 767px) {
    form {
        flex-direction: column;
        height: auto;
    }

    div.left {
        border-radius: 30px 30px 0 0 !important;
        padding: 30px 15px;
    }

    div.right {
        padding: 30px 15px;
    }
}


/* Form container */
form {
    flex: 1;
    width: 90%;
    max-width: 850px;
    background-color: #fff;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin: auto;
}

.footer {
    text-align: center;
    padding: 15px 0;
}

@media (min-width: 768px) {
    form {
        flex-direction: row;
        height: 550px;
    }
}

/* LEFT SIDE */
div.left {
    background-color: #43832b;
    width: 100%;
    padding: 40px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 30px 30px 0 0;
}

@media (min-width: 768px) {
    div.left {
        width: 50%;
        height: 100%;
        border-radius: 30px 30% 30% 30px;
    }
}

div.left p {
    color: #fff;
    font-size: 36px;
    font-weight: bolder;
    margin-bottom: 20px;
    text-align: center;
}

div.left a {
    color: #fff;
    font-size: 14.5px;
    text-decoration: none;
    margin-bottom: 10px;
    display: block;
}

div.left input[type="submit"] {
    border: 2px solid #fff;
    width: 100%;
    height: 46px;
    border-radius: 8px;
    background-color: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
}

.register-btn {
    border: 2px solid #fff;
    width: 100%;
    height: 46px;
    border-radius: 8px;
    background-color: transparent;
    color: #fff;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-top: 20px;
}
/* RIGHT SIDE */
div.right {
    width: 100%;
    padding: 40px 20px;
    position: relative;
}

@media (min-width: 768px) {
    div.right {
        width: 50%;
        height: 100%;
    }
}

div.right h1 {
    font-size: 28px;
    text-align: center;
    font-weight: bold;
    opacity: 0.7;
    margin-bottom: 30px;
}

div.right input {
    width: 100%;
    padding: 13px 50px 13px 20px;
    margin: 10px 0;
    background-color: #efefef;
    border: none;
    border-radius: 8px;
    font-size: 16px;
}

    div.right input:focus {
        outline: none;
    }

div.right span {
    position: absolute;
    right: 30px;
    transform: translateY(-267%);
    pointer-events: none;
}

div.right .person {
    top: 250px;
    color: #c5c5c5;
}

div.right .lock {
    top: 320px;
    color: #c5c5c5;
}

div.right a {
    color: #000;
    display: block;
    margin: 20px 0;
    text-align: center;
}

div.right button {
    background-color: #43832b;
    width: 100%;
    height: 48px;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    margin-top: 10px;
}

/* Extra Buttons */

.sign-out {
    padding: 10px;
    background-color: transparent !important;
    color: #dc3545 !important;
    border: 1px solid #dc3545 !important;
    border-radius: 8px;
}

    .sign-out:hover {
        background-color: #dc3545 !important;
        color: #fff !important;
        border: 1px solid #dc3545 !important;
    }

.home-page {
    padding: 10px;
    background-color: transparent !important;
    color: #28a745 !important;
    border: 1px solid #28a745 !important;
    border-radius: 8px;
}

    .home-page:hover {
        background-color: #28a745 !important;
        color: #fff !important;
        border: 1px solid #28a745 !important;
    }

.login-btn {
    background-color: #43832b !important;
}

    .login-btn:hover {
        background-color: #4d8936 !important;
    }

/* Social section */
div.right div p {
    margin: 15px 0;
}

div.right div div {
    margin-top: 20px;
    width: 100%;
    text-align: center;
}

    div.right div div a {
        display: inline-block;
        margin: 0 8px;
        border: 2px solid #ccc;
        padding: 6px 5px 0 5px;
        text-align: center;
        border-radius: 8px;
        font-size: 24px;
        width: 17%;
        height: 50px;
    }


/*------------------sticky icon right------------------*/
.sticky-icon {
    z-index: 1;
    position: fixed;
    top: 15%;
    right: 0%;
    width: 220px;
    display: flex;
    flex-direction: column;
}

    .sticky-icon a {
        transform: translate(160px,0px);
        border-radius: 50px 0px 0px 50px;
        text-align: left;
        margin: 2px;
        text-decoration: none;
        text-transform: uppercase;
        padding: 10px;
        font-size: 22px;
        font-family: 'Oswald', sans-serif;
        transition: all 0.8s;
    }

        .sticky-icon a:hover {
            color: #FFF;
            transform: translate(0px,0px);
        }

            .sticky-icon a:hover i {
                transform: rotate(360deg);
            }
/*.search_icon a:hover i  {
	transform:rotate(360deg);}*/
.website {
    background-color: #5faf42;
    color: #FFF;
}

.x-twitter {
    background-color: #000000;
    color: #FFF;
}

.linkedin {
    background-color: #0a66c2;
    color: #FFF;
}


.sticky-icon a i {
    background-color: #FFF;
    height: 40px;
    width: 40px;
    color: #000;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    margin-right: 20px;
    transition: all 0.5s;
}

    .sticky-icon a i.fa-facebook-f {
        background-color: #FFF;
        color: #2C80D3;
    }

    .sticky-icon a i.fa-google-plus-g {
        background-color: #FFF;
        color: #d34836;
    }

    .sticky-icon a i.fa-instagram {
        background-color: #FFF;
        color: #FD1D1D;
    }

    .sticky-icon a i.fa-youtube {
        background-color: #FFF;
        color: #fa0910;
    }

    .sticky-icon a i.fa-twitter {
        background-color: #FFF;
        color: #53c5ff;
    }

.fas fa-shopping-cart {
    background-color: #FFF;
}

#myBtn {
    height: 50px;
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    text-align: center;
    padding: 10px;
    text-align: center;
    line-height: 40px;
    border: none;
    outline: none;
    background-color: #1e88e5;
    color: white;
    cursor: pointer;
    border-radius: 50%;
}

.fa-arrow-circle-up {
    font-size: 30px;
}

#myBtn:hover {
    background-color: #555;
}

/* Password eye toggle */
.pass-input-wrap {
    position: relative;
    margin: 10px 0;
}
.pass-input-wrap input {
    margin: 0 !important;
}
.pass-eye-toggle {
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    color: #c5c5c5;
    font-size: 16px;
    transition: color .2s;
}
.pass-eye-toggle:hover {
    color: #666;
}

/* ============================================================
   Responsive-only fixes (visual style intentionally unchanged).
   The legacy rules above used hardcoded top:250px/320px and
   transform:translateY(-267%) for the username/password icons,
   which slid off the input on every other viewport. We anchor
   them to the input's own line-height instead.
   ============================================================ */

/* Username icon: was the .person rule with top:250px */
div.right .person {
    /* Place inside the username input's right padding without depending on a fixed Y */
    top: auto !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    /* Match the input vertical centre: the username input is the second focusable block,
       so use a calc against the password's wrapper instead of pixel offsets.
       Anchor via the next sibling pattern below. */
    margin-top: -24px;       /* lifts up to centre against the input above the password wrap */
    color: #c5c5c5;
}

/* Password icon stays inside .pass-input-wrap (already correct), no fix needed */

/* If the username icon ever gets squeezed off the input, the wrapper-based fallback below
   gives a clean centre-right placement using the input's own line. We can't add a wrapper
   without touching the markup, so a small JS hook in Login.cshtml could move .person inside
   the username input's wrapper. For now: vertical centring against the form column. */

/* Card sizing: keep the original visual but break at sensible widths */
@media (max-width: 991px) {
    form { width: min(94%, 720px) !important; }
}
@media (max-width: 767px) {
    form {
        width: min(96%, 480px) !important;
        height: auto !important;
        flex-direction: column !important;
    }
    div.left {
        width: 100% !important;
        height: auto !important;
        border-radius: 30px 30px 0 0 !important;
        padding: 30px 20px !important;
    }
    div.right {
        width: 100% !important;
        height: auto !important;
        padding: 30px 20px !important;
    }
    /* On stacked layout, the legacy hardcoded .person top:250px lands wrong; recompute */
    div.right .person {
        position: absolute !important;
        right: 30px !important;
        top: auto !important;
        margin-top: 0 !important;
        /* place the icon ~24px below the username input's top edge — works because the
           username is the FIRST input on the right pane */
        transform: translateY(20px) !important;
    }
}
@media (max-width: 480px) {
    form {
        border-radius: 18px !important;
    }
    div.left {
        border-radius: 18px 18px 0 0 !important;
        padding: 24px 16px !important;
    }
    div.right { padding: 24px 16px !important; }
    /* iOS auto-zoom prevention */
    div.right input { font-size: 16px !important; }
    div.left p { font-size: 28px !important; margin-bottom: 14px !important; }
}

/* Hide sticky icons earlier so they don't overlap small screens */
@media (max-width: 991px) {
    .sticky-icon { display: none !important; }
}
