@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

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

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #07070e; 
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.container {
    background: rgba(255, 255, 255, 0.94); 
    border-radius: 32px;
    box-shadow: 0 50px 100px rgba(0,0,0,0.6);
    position: relative;
    overflow: hidden;
    width: 1000px;
    max-width: 95%;
    min-height: 640px;
}

.form-container {
    position: absolute;
    top: 0;
    height: 100%;
    transition: all 0.6s ease-in-out;
}

.auth-form {
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 60px;
    height: 100%;
    text-align: center;
    color: #2d3748; 
}

.main-ems-container { left: 0; width: 50%; z-index: 2; opacity: 1; }
.container.right-panel-active .main-ems-container { transform: translateX(100%); opacity: 0; z-index: 1; }

.inbox-login-container { left: 0; width: 50%; opacity: 0; z-index: 1; }
.container.right-panel-active .inbox-login-container { transform: translateX(100%); opacity: 1; z-index: 5; }

.overlay-container {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50%;
    height: 100%;
    overflow: hidden;
    transition: transform 0.6s ease-in-out;
    z-index: 100;
}
.container.right-panel-active .overlay-container { transform: translateX(-100%); }

.overlay {
    background: #07070e;
    color: #FFFFFF;
    position: relative;
    left: -100%;
    height: 100%;
    width: 200%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
    border-left: 1px solid rgba(255,255,255,0.05);
}
.container.right-panel-active .overlay { transform: translateX(50%); }

.overlay-panel {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 40px;
    text-align: center;
    top: 0;
    height: 100%;
    width: 50%;
    transform: translateX(0);
    transition: transform 0.6s ease-in-out;
}
.overlay-left { transform: translateX(-20%); }
.container.right-panel-active .overlay-left { transform: translateX(0); }
.overlay-right { right: 0; transform: translateX(0); }
.container.right-panel-active .overlay-right { transform: translateX(20%); }

/* --- UI Elements --- */
h1 { font-weight: 800; margin-bottom: 20px; font-size: 40px; letter-spacing: -1.5px; }
h2 { font-weight: 700; color: #1a1a2e; margin-bottom: 8px; font-size: 32px; }
.subtitle { color: #64748b; font-size: 15px; margin-bottom: 30px; }

.btn-solid {
    width: 100%; height: 54px; border-radius: 12px; border: none;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%); 
    color: #FFFFFF; font-size: 16px; font-weight: 700; cursor: pointer;
    transition: all 0.3s ease; margin-top: 20px;
    box-shadow: 0 10px 20px rgba(168, 85, 247, 0.2);
}
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 12px 25px rgba(168, 85, 247, 0.4); }

.btn-ghost {
    background: transparent; border: 2px solid #fff;
    border-radius: 12px; padding: 12px 45px; color: #fff; font-weight: 700;
    cursor: pointer; margin-top: 30px; transition: 0.2s;
}
.btn-ghost:hover { background: #fff; color: #07070e; }

.input-with-icon {
    width: 100%; position: relative; display: flex; align-items: center;
    background: rgba(241, 245, 249, 0.6); 
    border: 1px solid #e2e8f0;
    border-radius: 12px; margin-bottom: 16px; transition: 0.3s;
}
.input-with-icon:focus-within { border-color: #a855f7; background: #fff; }
.input-with-icon i { position: absolute; left: 18px; color: #a855f7; }
.input-with-icon input {
    width: 100%; background: transparent; border: none;
    padding: 16px 18px 16px 52px; color: #1a1a2e; font-size: 15px;
    outline: none; font-family: inherit;
}

/* Autofill Fix */
input:-webkit-autofill { -webkit-box-shadow: 0 0 0px 1000px #f8fafc inset !important; }

.logo-icon-wrapper {
    width: 60px; height: 60px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 30px; margin-bottom: 15px; background: rgba(168, 85, 247, 0.05); color: #a855f7;
}

.social-login { display: flex; gap: 16px; margin-top: 25px; }
.social-btn {
    width: 50px; height: 50px; border-radius: 12px;
    background: #fff; border: 1px solid #e2e8f0;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.2s;
}
.social-btn:hover { background: #f8fafc; }
.social-btn img { width: 22px; }

.action-bar { width: 100%; display: flex; justify-content: space-between; font-size: 13px; color: #64748b; }
.divider-text { width: 100%; text-align: center; margin: 30px 0; border-bottom: 1px solid #f1f5f9; line-height: 0.1em; }
.divider-text span { background: #fff; padding: 0 15px; color: #94a3b8; }

.otp-box { width: 45px; height: 55px; text-align: center; font-size: 22px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; color: #333; }
.error-msg { color: #ef4444; font-size: 13px; margin-top: 15px; }

/* OTP Transitions */
.hidden-form { display: none !important; }
.active-form { display: flex !important; }
.otp-inputs { display: flex; gap: 10px; margin: 20px 0; justify-content: center; }