/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
}


/* =========================================
   PAGE CONTAINER
 ========================================= */

.auth-container {
    display: grid;

    /*
        Target design:
        Left = approximately 42%
        Right = approximately 58%
    */
    grid-template-columns: 58% 42%;

    min-height: 100vh;
}





.forgot-password a,
.register-link a{
    text-decoration: none !important;
}

.forgot-password a:hover,
.register-link a:hover {
    text-decoration: underline !important;
}

/* a:hover{
    text-decoration: underline;
} */

/* =========================================
   LEFT SIDE
========================================= */

.auth-left {
    position: relative;

    overflow: hidden;

    background: #1b7d3a;

    color: white;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 80px;
}


/* Background image */

.background-image {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 0;
}


/* Green image overlay */

.overlay {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 100, 0, 0.75);

    z-index: 1;
}


/* Left text */

.left-content {
    position: relative;

    max-width: 560px;

    z-index: 2;
}


.auth-left h1 {
    font-size: clamp(42px, 4vw, 62px);

    line-height: 1.1;

    margin-bottom: 25px;

    font-weight: 700;
}


.auth-left p {
    font-size: 21px;

    line-height: 1.7;

    max-width: 540px;
}


/* =========================================
   RIGHT SIDE
========================================= */

.auth-right {
    position: relative;

    min-height: auto;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    background: #f7f8f7;

    padding: 25px 40px;

    overflow: hidden;
}


/* =========================================
   BRAND AREA
========================================= */

.brand-area {
    position: relative;

    width: 100%;

    max-width: 760px;

    height: 290px;

    display: flex;

    justify-content: center;
    align-items: center;

    flex-shrink: 0;

    margin-bottom: -10px;

    z-index: 1;
}


/* =========================================
   UPWARD-OPENING GREEN SHAPE
========================================= */

.brand-roof {
    position: absolute;

    /*
        The shape is intentionally much
        wider than the logo.
    */

    width: 780px;
    height: 310px;

    top: -20px;

    left: 50%;

    transform: translateX(-50%);

    /*
        Creates the large upward-opening
        geometric roof shape.
    */
    clip-path: polygon(
        50% 0%,
        100% 82%,
        100% 85%,
        50% 8%,
        0% 85%,
        0% 82%
    );

    background: #4caf50;

    z-index: 0;
}


/*
    Inner lighter line.

    This gives the shape the second,
    subtle line visible in your reference.
*/

.brand-roof::after {
    content: "";

    position: absolute;

    width: 750px;
    height: 290px;

    top: 12px;
    left: 50%;

    transform: translateX(-50%);

    clip-path: polygon(
        50% 0%,
        100% 82%,
        100% 84%,
        50% 7%,
        0% 84%,
        0% 82%
    );

    background: #e7f0e7;
}


/* =========================================
   AGRO-SHIELD LOGO
========================================= */

.auth-brand {
    position: relative;

    width: 250px;
    max-width: 70%;

    height: auto;

    object-fit: contain;

    z-index: 2;

    /*
        Moves the logo slightly downward
        from the peak.
    */
    margin-top: 25px;

    filter: drop-shadow(
        0 5px 8px rgba(0, 0, 0, 0.08)
    );
}


/* =========================================
   LOGIN FORM
========================================= */

.auth-right form {
    position: relative;

    width: 100%;

    max-width: 570px;

    background: #ffffff;

    padding: 52px 46px 48px;

    border-radius: 20px;

    border: 1px solid rgba(0, 0, 0, 0.03);

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.08);

    z-index: 3;

    transition:
            transform 0.25s ease,
            box-shadow 0.25s ease
}

.auth-right form:active {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}


/* =========================================
   FORM HEADING
========================================= */

.auth-right form h2 {
    text-align: center;

    color: #123d20;

    font-size: 42px;

    line-height: 1.2;

    margin-bottom: 38px;

    font-weight: 700;
}


/*
    Small green line underneath Login
*/

.auth-right form h2::after {
    content: "";

    display: block;

    width: 65px;
    height: 3px;

    margin: 14px auto 0;

    background: #43a047;

    border-radius: 10px;
}


/* =========================================
   LABELS
========================================= */

.auth-right form label {
    display: block;

    margin-top: 22px;

    margin-bottom: 9px;

    color: #202020;

    font-size: 17px;

    font-weight: 600;
}


/* =========================================
   INPUT WRAPPER
========================================= */

.input-wrapper,
.password-wrapper {
    position: relative;

    width: 100%;
}


/* =========================================
   INPUTS
========================================= */

.input-wrapper input,
.password-wrapper input {
    width: 100%;

    height: 62px;

    padding: 0 50px 0 58px;

    border: 1.5px solid #d7dcd8;

    border-radius: 13px;

    background: #ffffff;

    color: #222;

    font-size: 16px;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.input-wrapper input::placeholder,
.password-wrapper input::placeholder {
    color: #a5aaa6;
}


/* Focus */

.input-wrapper input:focus,
.password-wrapper input:focus {
    outline: none;

    border-color: #4caf50;

    box-shadow:
        0 0 0 3px rgba(76, 175, 80, 0.12);
}


/* =========================================
   INPUT ICONS
========================================= */

.input-icon {
    position: absolute;

    left: 15px;

    top: 50%;

    transform: translateY(-50%);

    width: 34px;
    height: 34px;

    display: flex;

    justify-content: center;
    align-items: center;

    background: #eef7ee;

    border-radius: 9px;

    color: #398d3f;

    font-size: 15px;

    z-index: 2;

    pointer-events: none;
}


.input-icon i,
.input-icon svg {
    display: block;

    width: 16px;
    height: 16px;

    font-size: 16px;

    line-height: 1;

    text-align: center;
}

.input-icon::before {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    text-align: center;
}

.input-icon.fa-phone::before{
    transform: translateY(1px);
}

.input-icon.fa-lock::before{
    transform: translateY(-1px);
}

/* =========================================
   PASSWORD EYE
========================================= */

.toggle-password {
    position: absolute;

    right: 17px;

    top: 50%;

    transform: translateY(-50%);

    color: #398d3f;

    font-size: 19px;

    cursor: pointer;

    z-index: 3;
}


.toggle-password:hover {
    color: #236c2d;
}




.auth-right form {
    position: relative;
  
    width: 100%;
    max-width: 570px;
  
    background: #ffffff;
  
    padding: 52px 46px 48px;
  
    border-radius: 20px;
  
    border: 1px solid rgba(0, 0, 0, 0.03);
  
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
  
    z-index: 3;
  
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease;
  }



  .auth-right form:hover {
      transform: translateY(-px) scale(1.01);

      box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14); }

/* =========================================
   SIGN IN BUTTON
========================================= */

.auth-right form button {
    width: 100%;

    height: 62px;

    margin-top: 32px;

    padding: 0 20px;

    border: none;

    border-radius: 13px;

    background: #248c2b;

    color: #ffffff;

    font-size: 19px;

    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.15s ease,
        box-shadow 0.2s ease;
}


.auth-right form button:hover {
    background: #1d7424;

    box-shadow:
        0 7px 18px rgba(36, 140, 43, 0.22);
}


.auth-right form button:active {
    transform: translateY(1px);
}


.auth-right form button:disabled {
    opacity: 0.7;

    cursor: not-allowed;
}


/* =========================================
   LINKS
========================================= */

.auth-right form p {
    text-align: center;
}


/* Forgot password */

.forgot-password {
    margin-top: 32px;
}


.forgot-password a,
.register-link a {
    color: #27852d;

    text-decoration: underline;

    font-weight: 500;
}


.forgot-password a:hover,
.register-link a:hover {
    color: #185e1e;
}


/* Register */

.register-link {
    margin-top: 34px;

    color: #333;

    font-size: 16px;
}


/* =========================================
   ERROR MESSAGE
========================================= */

.auth-right form .message {
    margin-bottom: 15px;

    color: #d32f2f;

    text-align: center;

    font-weight: 600;
}


/* =========================================
   RESPONSIVE DESIGN
========================================= */

@media (max-width: 1000px) {

    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-left {
        min-height: 400px;

        padding: 60px;
    }

    .auth-right {
        min-height: auto;

        padding: 50px 25px 70px;
    }

    .brand-area {
        height: 260px;
    }

    .brand-roof {
        width: 700px;
    }

    .brand-roof::after {
        width: 670px;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .auth-left {
        min-height: 350px;

        padding: 40px 30px;

        justify-content: flex-end;
    }

    .auth-left h1 {
        font-size: 40px;
    }

    .auth-left p {
        font-size: 17px;

        line-height: 1.6;
    }


    .auth-right {
        padding: 20px 18px 50px;
    }


    .brand-area {
        height: 220px;
    }


    .brand-roof {
        width: 560px;

        height: 240px;
    }


    .brand-roof::after {
        width: 535px;

        height: 225px;
    }


    .auth-brand {
        width: 205px;

        margin-top: 25px;
    }


    .auth-right form {
        padding: 38px 25px 35px;

        border-radius: 16px;
    }


    .auth-right form h2 {
        font-size: 34px;

        margin-bottom: 30px;
    }


    .input-wrapper input,
    .password-wrapper input {
        height: 57px;

        font-size: 15px;
    }


    .auth-right form button {
        height: 57px;
    }

}

/* ============================================================
   MOBILE OPTIMIZATION - LOGIN PAGE
   ============================================================ */

@media (max-width: 600px) {
    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-left {
        min-height: 220px;
        padding: 30px 20px;
        justify-content: center;
    }

    .auth-left h1 {
        font-size: 30px;
        margin-bottom: 10px;
    }

    .auth-left p {
        font-size: 14px;
        line-height: 1.5;
    }

    .auth-right {
        padding: 25px 16px 40px;
    }

    .brand-area {
        height: 180px;
    }

    .brand-roof {
        width: 480px;
        height: 200px;
    }

    .brand-roof::after {
        width: 455px;
        height: 185px;
    }

    .auth-brand {
        width: 180px;
        margin-top: 20px;
    }

    .auth-right form {
        padding: 30px 20px;
        border-radius: 14px;
    }

    .auth-right form h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .input-wrapper input,
    .password-wrapper input {
        height: 52px;
        font-size: 15px;
    }

    .auth-right form button {
        height: 52px;
        font-size: 16px;
    }
}

@media (max-width: 400px) {
    .auth-left {
        padding: 20px 15px;
    }

    .auth-left h1 {
        font-size: 26px;
    }

    .auth-left p {
        font-size: 13px;
    }

    .brand-roof {
        width: 420px;
        height: 180px;
    }

    .brand-roof::after {
        width: 400px;
        height: 165px;
    }

    .auth-brand {
        width: 160px;
    }

    .auth-right form {
        padding: 24px 15px;
    }
}

@media (max-width: 600px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    .auth-left {
        min-height: 200px;
        padding: 20px;
    }
    .auth-left h1 {
        font-size: 28px;
    }
    .auth-right {
        padding: 20px 12px;
    }
    .auth-right form {
        padding: 24px 18px;
    }
    .auth-right form input {
        height: 50px;
        font-size: 15px;
    }
    .auth-right form button {
        height: 50px;
        font-size: 16px;
    }
}
