
/* ==========================================
   EYERO INDIA - GLASSMORPHISM LOGIN PAGE
========================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #159DD0;
    --primary-dark: #087EAF;
    --navy: #10264A;
    --text: #46546A;
    --white: #FFFFFF;
}

body {
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;

    background:
        radial-gradient(circle at 10% 15%, #C8EEFF 0%, transparent 35%),
        radial-gradient(circle at 90% 85%, #B7DDF5 0%, transparent 35%),
        linear-gradient(135deg, #EAF7FD, #D9EEFA, #F5FAFE);

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 45px 20px;
    position: relative;
    overflow-x: hidden;
}

/* BACK HOME */

.back-home {
    position: absolute;
    top: 25px;
    left: 35px;

    text-decoration: none;
    color: var(--navy);

    font-size: 14px;
    font-weight: 600;

    transition: 0.3s;
}

.back-home:hover {
    color: var(--primary);
    transform: translateX(-4px);
}


/* MAIN CONTAINER */

.auth-container {
    width: 100%;
    max-width: 1100px;
    min-height: 650px;

    display: flex;

    border-radius: 28px;
    overflow: hidden;

    background: rgba(255, 255, 255, 0.35);

    border: 1px solid rgba(255, 255, 255, 0.75);

    box-shadow:
        0 25px 70px rgba(34, 93, 130, 0.15),
        inset 0 1px 1px rgba(255, 255, 255, 0.8);

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    animation: containerAppear 0.8s ease;
}

@keyframes containerAppear {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* LEFT WELCOME PANEL */

.welcome-panel {
    width: 46%;
    min-height: 650px;

    padding: 55px 45px;

    position: relative;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    background:
        linear-gradient(
            145deg,
            rgba(220, 243, 255, 0.82),
            rgba(190, 227, 247, 0.65)
        );

    border-right: 1px solid rgba(255, 255, 255, 0.65);
}


/* GLASS DECORATIONS */

.glass-decoration {
    position: absolute;
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.32);

    border: 1px solid rgba(255, 255, 255, 0.65);

    backdrop-filter: blur(5px);

    animation: floating 7s ease-in-out infinite;
}

.decoration-one {
    width: 230px;
    height: 230px;

    top: -70px;
    right: -65px;
}

.decoration-two {
    width: 170px;
    height: 170px;

    bottom: 80px;
    left: -65px;

    animation-delay: 2s;
}

@keyframes floating {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-18px);
    }
}


/* WELCOME CONTENT */

.welcome-content {
    position: relative;
    z-index: 2;

    text-align: center;
    margin: auto 0;
}


/* LOGO */

.logo {
    display: block;
    width: 300px;
    max-width: 95%;
    height: auto;

    object-fit: contain;
    margin: 0 auto 65px;

    background: transparent;
    border: none;
    padding: 0;

    mix-blend-mode: normal;
}


/* WELCOME TEXT */

.welcome-tag {
    display: inline-block;

    color: var(--primary-dark);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 20px;
}

.welcome-text h1 {
    font-size: 36px;
    color: var(--navy);

    margin-bottom: 18px;
    line-height: 1.2;
}

.welcome-text p {
    max-width: 350px;

    margin: 0 auto;

    color: #52677C;

    font-size: 15px;
    line-height: 1.8;
}


/* SWITCH BUTTON */

.switch-button {
    margin-top: 35px;

    padding: 13px 32px;

    border: 1.5px solid var(--primary);

    border-radius: 30px;

    background: rgba(255, 255, 255, 0.35);

    color: var(--navy);

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.3s;
}

.switch-button:hover {
    background: var(--primary);
    color: white;

    transform: translateY(-3px);

    box-shadow: 0 8px 20px rgba(21, 157, 208, 0.2);
}


/* PANEL FOOTER */

.panel-footer {
    position: relative;
    z-index: 2;

    color: #58758B;

    font-size: 11px;
    text-align: center;
}


/* RIGHT FORM PANEL */

.form-panel {
    width: 54%;

    padding: 55px 65px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.78);

    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.form-wrapper {
    width: 100%;
    max-width: 410px;
}


/* FORM HEADING */

.form-heading {
    margin-bottom: 32px;
}

.form-small-title {
    display: block;

    color: var(--primary-dark);

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 2px;

    margin-bottom: 12px;
}

.form-heading h2 {
    color: var(--navy);

    font-size: 29px;

    margin-bottom: 10px;
}

.form-heading p {
    color: #8190A2;

    font-size: 14px;
}


/* FORMS */

.auth-form {
    display: none;

    animation: formAppear 0.4s ease;
}

.auth-form.active {
    display: block;
}

@keyframes formAppear {
    from {
        opacity: 0;
        transform: translateX(15px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* INPUT GROUP */

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;

    color: var(--navy);

    font-size: 13px;
    font-weight: 600;

    margin-bottom: 9px;
}

.input-group input {
    width: 100%;
    height: 49px;

    padding: 0 15px;

    border: 1px solid #DCE8F1;
    border-radius: 10px;

    background: rgba(246, 251, 255, 0.85);

    color: var(--navy);

    font-size: 14px;

    outline: none;

    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--primary);

    background: white;

    box-shadow: 0 0 0 4px rgba(21, 157, 208, 0.10);
}

.input-group input::placeholder {
    color: #A6B3C0;
}


/* PASSWORD */

.password-box {
    position: relative;
}

.password-box input {
    padding-right: 65px;
}

.password-toggle {
    position: absolute;

    right: 13px;
    top: 50%;

    transform: translateY(-50%);

    border: none;
    background: transparent;

    color: var(--primary-dark);

    font-size: 12px;
    font-weight: 600;

    cursor: pointer;
}


/* FORM OPTIONS */

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 10px;

    margin: 8px 0 25px;

    font-size: 12px;
}

.remember-option {
    display: flex;
    align-items: center;
    gap: 7px;

    color: var(--text);
}

.remember-option input {
    accent-color: var(--primary);
}

.form-options a,
.form-switch a {
    color: var(--primary-dark);

    font-weight: 600;
    text-decoration: none;

    transition: 0.3s;
}

.form-options a:hover,
.form-switch a:hover {
    text-decoration: underline;
}


/* SUBMIT BUTTON */

.submit-button {
    width: 100%;
    height: 50px;

    border: none;
    border-radius: 10px;

    background: linear-gradient(
        135deg,
        #159DD0,
        #087EAF
    );

    color: white;

    font-size: 15px;
    font-weight: 700;

    cursor: pointer;

    transition: 0.3s;
}

.submit-button:hover {
    transform: translateY(-3px);

    box-shadow: 0 10px 22px rgba(21, 157, 208, 0.25);
}


/* FORM SWITCH */

.form-switch {
    margin-top: 27px;

    text-align: center;

    color: #7D8B9A;

    font-size: 13px;
}


/* MESSAGE */

.message {
    min-height: 18px;

    margin-top: 12px;

    text-align: center;

    font-size: 12px;
    color: #087EAF;
}


/* RESPONSIVE DESIGN */

@media (max-width: 900px) {

    .auth-container {
        max-width: 750px;
    }

    .welcome-panel {
        width: 43%;
        padding: 40px 25px;
    }

    .form-panel {
        width: 57%;
        padding: 45px 35px;
    }

    .logo {
        width: 190px;
    }

    .welcome-text h1 {
        font-size: 29px;
    }

}

@media (max-width: 650px) {

    body {
        padding: 65px 15px 20px;
    }

    .back-home {
        top: 22px;
        left: 20px;
    }

    .auth-container {
        flex-direction: column;

        max-width: 450px;
        min-height: auto;
    }

    .welcome-panel {
        width: 100%;
        min-height: 350px;

        padding: 35px 25px;
    }

    .logo {
        width: 175px;
        margin-bottom: 30px;
    }

    .welcome-text h1 {
        font-size: 27px;
    }

    .welcome-text p {
        font-size: 13px;
    }

    .switch-button {
        margin-top: 22px;
    }

    .panel-footer {
        margin-top: 30px;
    }

    .form-panel {
        width: 100%;
        padding: 40px 25px;
    }

    .form-heading h2 {
        font-size: 25px;
    }

}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
