* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", system-ui, sans-serif;
}

body {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ================= LEFT SIDE ================= */
.left {
    flex: 1;
    background: white;
    padding: 40px 60px;
    display: flex;
    flex-direction: column;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}

.logo svg {
    width: 40px;
    height: 40px;
}

.logo span {
    font-size: 22px;
    font-weight: 600;
    color: #333;
}

h1 {
    font-size: 28px;
    margin-bottom: 30px;
    color: #222;
}

.form-group {
    margin-bottom: 20px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}

input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
    transition: 0.3s;
}

input:focus {
    outline: none;
    border-color: #ff9800;
    box-shadow: 0 0 0 3px rgba(255, 152, 0, 0.1);
}

/* Error state for inputs */
input.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 50px;
}

.eye-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 20px;
    user-select: none;
    transition: 0.2s;
}

.eye-icon:hover {
    transform: translateY(-50%) scale(1.1);
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 15px 0;
    font-size: 14px;
}

.options label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    margin-bottom: 0;
}

.options input {
    width: auto;
    margin: 0;
}

.login-btn {
    background: #850856;
    color: white;
    border: none;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
    width: 100%;
}

.login-btn:hover {
    background: #f57c00;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 152, 0, 0.3);
}

.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.divider {
    text-align: center;
    margin: 25px 0;
    color: #999;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 1px;
    background: #eee;
    top: 50%;
    left: 0;
    z-index: 1;
}

.divider span {
    background: white;
    padding: 0 15px;
    position: relative;
    z-index: 2;
}

.social-buttons {
    display: flex;
    gap: 12px;
}

.social-btn {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    font-size: 18px;
    font-weight: 600;
    transition: 0.3s;
}

.social-btn:hover {
    background: #f5f5f5;
    border-color: #ff9800;
}

.signup {
    margin-top: auto;
    text-align: center;
    font-size: 14px;
    padding-top: 30px;
}

.signup a {
    color: #ff9800;
    text-decoration: none;
    font-weight: 600;
}

.signup a:hover {
    text-decoration: underline;
}

/* Session Status Message */
.session-status {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Alert Message */
.alert-danger {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 12px;
    border-radius: 8px;
    margin-top: 15px;
    font-size: 13px;
}

.alert-danger ul {
    margin: 0;
    padding-left: 20px;
}

/* ================= RIGHT SIDE - ANIMATED EYE ================= */
.right {
    flex: 1;
    background: linear-gradient(135deg, #9b1760, #f57c00);

    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.right::before {
    content: "";
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.1) 0%,
        transparent 70%
    );
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.face {
    position: relative;
    width: 320px;
    height: 320px;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }
}

.eye {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(
        circle at 42% 38%,
        #ffffff 0%,
        #fafafa 55%,
        #ececec 78%,
        #cfcfcf 100%
    );
    box-shadow:
        inset -10px -12px 20px rgba(0, 0, 0, 0.18),
        inset 10px 10px 18px rgba(255, 255, 255, 0.95),
        0 20px 25px rgba(0, 0, 0, 0.4);
    cursor: pointer;
    transition: transform 0.2s;
}

.eye:hover {
    transform: translate(-50%, -50%) scale(1.02);
}

.eye::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 15% 65%,
            transparent 0 48px,
            rgba(180, 0, 0, 0.1) 49px 50px,
            transparent 51px
        ),
        repeating-linear-gradient(
            115deg,
            transparent 0 14px,
            rgba(190, 0, 0, 0.13) 15px 16px,
            transparent 17px 25px
        );
    clip-path: ellipse(38% 48% at 20% 62%);
    opacity: 0.75;
}

.iris {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 92px;
    height: 92px;
    border-radius: 50%;
    background: radial-gradient(
        circle at center,
        #140600 0%,
        #3d1400 18%,
        #7a3400 34%,
        #b65d00 52%,
        #ffbf00 78%,
        #ffe100 100%
    );
    overflow: visible;
    box-shadow:
        inset 0 0 12px rgba(0, 0, 0, 0.6),
        0 0 8px rgba(255, 170, 0, 0.5);
    transition: transform 0.1s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.iris::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: repeating-conic-gradient(
        from 0deg,
        rgba(255, 255, 255, 0.2) 0deg 1deg,
        transparent 1deg 7deg
    );
    opacity: 0.9;
    mix-blend-mode: overlay;
}

.pupil {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #000;
    box-shadow:
        inset 0 0 5px rgba(255, 255, 255, 0.12),
        0 0 10px rgba(0, 0, 0, 0.5);
    transition: all 0.08s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    will-change: transform, width, height;
}

.pupil::before {
    content: "";
    position: absolute;
    top: 25%;
    left: 25%;
    width: 30%;
    height: 30%;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(255, 255, 255, 0.8) 0%,
        rgba(255, 255, 255, 0) 100%
    );
}

.shine-small {
    position: absolute;
    top: 30px;
    left: 25px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 5px rgba(255, 255, 255, 0.8);
    pointer-events: none;
}

.smile {
    position: absolute;
    left: 50%;
    transform: translateX(-50%) rotate(8deg);
    bottom: 30px;
    width: 200px;
    height: 80px;
    border-bottom: 6px solid #8f4200;
    border-radius: 0 0 150px 150px;
}

.smile::before {
    content: "";
    position: absolute;
    left: -15px;
    top: -3px;
    width: 32px;
    height: 32px;
    border: 6px solid #8f4200;
    border-color: #8f4200 transparent transparent transparent;
    border-radius: 50%;
    transform: rotate(-55deg);
}

.smile::after {
    content: "";
    position: absolute;
    right: -16px;
    top: -6px;
    width: 34px;
    height: 34px;
    border: 6px solid #8f4200;
    border-color: #8f4200 transparent transparent transparent;
    border-radius: 50%;
    transform: rotate(70deg);
}

@media (max-width: 900px) {
    body {
        flex-direction: column;
    }

    .left {
        padding: 30px;
    }

    .right {
        min-height: 400px;
    }

    .face {
        transform: scale(0.8);
    }
}
