*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Poppins', sans-serif;
}

body{
    overflow:hidden;
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}

.wrapper{
    width:100%;
    height:100vh;
    display:flex;
    position:relative;
    background:url("../images/bg.png") no-repeat;
    background-size: cover;
    background-position-y: center;
    animation: fadeIn 0.8s ease-in-out;
}

@keyframes fadeIn{
    from{ opacity:0; transform:scale(1.02); }
    to{   opacity:1; transform:scale(1);    }
}

.overlay{
    position:absolute;
    inset:0;
    background:linear-gradient(
        120deg,
        rgba(255,255,255,.92),
        rgba(255,240,245,.85)
    );
    opacity: .1;
    z-index:0;
}

/* ── LEFT ── */
.left{
    width:55%;
    padding:60px;
    position:relative;
    z-index:2;
}

.logo{
    width:260px;
    margin-bottom:0px;
}

.left h1{
    font-size:62px;
    font-weight:800;
    color:#1f1f1f;
    line-height:1.2;
    animation: slideUp 0.8s ease forwards;
    opacity:0;
}

.left h1 span{
    color:#e6141d;
}

.subtitle{
    margin-top:24px;
    font-size:24px;
    color:#444;
    font-weight:500;
    animation: slideUp 0.8s ease forwards;
    animation-delay:0.2s;
    opacity:0;
}

.description{
    margin-top:10px;
    font-size:14px;
    color:#666;
    max-width:500px;
    line-height:1.6;
    animation: slideUp 0.8s ease forwards;
    animation-delay:0.3s;
    opacity:0;
}

@keyframes slideUp{
    from{ transform:translateY(20px); opacity:0; }
    to{   transform:translateY(0);    opacity:1; }
}

.line{
    width: 130px;
    height: 4px;
    background: #f94176;
    border-radius: 20px;
    margin: 25px 0;
}

/* Feature grid */
.feature-box{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:15px;
    margin-top:40px;
    max-width:645px;
}

.feature{
    background:rgba(255,255,255,.75);
    padding:15px;
    border-radius:18px;
    display:flex;
    align-items:center;
    gap:10px;
    backdrop-filter:blur(10px);
    box-shadow:0 10px 25px rgba(0,0,0,.05);
    transition:0.3s ease;
}

.feature:hover{
    transform:translateY(-4px);
    box-shadow:0 15px 30px rgba(0,0,0,.10);
}

.feature i{
    color:#e6141d;
    font-size:18px;
}

.feature h4{
    margin:0;
    font-size:18px;
    font-weight:600;
}

.feature small{
    display:block;
    margin-top:2px;
    font-size:16px;
    color:#777;
}

/* ── RIGHT ── */
.right{
    width:45%;
    display:flex;
    align-items:center;
    justify-content:center;
    position:relative;
    z-index:2;
}

.right::before {
    content: "";
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(255, 192, 203, 0.2);
    filter: blur(80px);
    top: 10%;
    right: 10%;
    z-index: 0;
}

/* ── Login Card ── */
.login-card{
    max-width:520px;
    padding:50px;
    width: 100%;
    background:rgba(255,255,255,.82);
    backdrop-filter:blur(18px);
    border-radius:28px;
    box-shadow:0 25px 60px rgba(0,0,0,.12);
    transition:0.3s ease;
    position: relative;
    z-index: 1;
}

.login-card:hover{
    transform:translateY(-5px);
    box-shadow:0 35px 80px rgba(0,0,0,.15);
}

.avatar{
    width:70px;
    height:70px;
    margin:auto;
    background:#ffe3ec;
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#e6141d;
    font-size:28px;
}

.login-card h2{
    text-align:center;
    margin-top:15px;
    font-size:42px;
    font-weight:700;
}

.login-card h2 span{ color:#e6141d; }

.login-card > p {
    text-align:center;
    margin-bottom:30px;
    font-size:17px;
    color:#555;
}

/* ── Error / Session alert ── */
.alert-error{
    display:flex;
    align-items:flex-start;
    gap:10px;
    background:#fef2f2;
    border:1px solid #fecaca;
    border-radius:10px;
    padding:12px 16px;
    margin-bottom:20px;
    font-size:14px;
    color:#b91c1c;
    animation: shake .35s ease;
}

.alert-error i{ font-size:15px; margin-top:1px; flex-shrink:0; }

@keyframes shake{
    0%,100%{ transform:translateX(0);  }
    20%     { transform:translateX(-5px); }
    40%     { transform:translateX(5px);  }
    60%     { transform:translateX(-4px); }
    80%     { transform:translateX(4px);  }
}

/* ── Input boxes ── */
.input-box{
    margin-top:20px;
    position:relative;
}

.input-box input{
    width:100%;
    padding:14px 45px;
    border-radius:12px;
    min-height: 56px;
    border:1.5px solid #eee;
    outline:none;
    background:#fff;
    font-size:15px;
    transition: border-color .2s, box-shadow .2s;
}

.input-box input:focus{
    border-color:#e6141d;
    box-shadow:0 0 0 4px rgba(233,30,99,.10);
}

.input-box input.field-error{
    border-color:#e6141d;
}

.input-box i{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    left:15px;
    color:#999;
    pointer-events: none;
}

.input-box .eye{
    left:auto;
    right:15px;
    cursor:pointer;
    pointer-events: all;
    color: #aaa;
    font-size: 17px;
    transition: color 0.2s;
}

.input-box .eye:hover{
    color: #e6141d;
}

/* Give the password field right padding so eye icon doesn't overlap text */
#password{
    padding-right: 48px !important;
}

/* ── Options row ── */
.options{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-top:15px;
    font-size:15px;
}

.options label{
    display:flex;
    align-items:center;
    gap:7px;
    cursor:pointer;
    color:#444;
}

.options a{
    color:#e6141d;
    text-decoration:none;
}

/* ── Submit button ── */
.btn-login{
    width:100%;
    margin-top:25px;
    padding:14px;
    border:none;
    border-radius:14px;
    font-size:20px;
    background:linear-gradient(90deg,#ff4d7d,#e6141d);
    color:white;
    min-height: 56px;
    font-weight:700;
    cursor:pointer;
    transition:0.3s ease;
    position:relative;
    overflow:hidden;
    letter-spacing:.5px;
}

.btn-login:hover{
    transform:translateY(-2px);
    box-shadow:0 15px 30px rgba(233,30,99,.30);
}

.btn-login:active{ transform:scale(0.98); }

.btn-login:disabled{
    opacity:.75;
    cursor:not-allowed;
    transform:none;
}

/* ── Error toast ── */
.error-toast{
    position:fixed;
    top:20px;
    right:20px;
    background:#e6141d;
    color:#fff;
    padding:12px 20px;
    border-radius:10px;
    font-size:14px;
    opacity:0;
    transform:translateY(-10px);
    transition:0.3s ease;
    z-index:9999;
    display:flex;
    align-items:center;
    gap:8px;
}

.error-toast.show{
    opacity:1;
    transform:translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1200px){
    .left h1{ font-size:46px; }
}

@media (min-width:1200px) and (max-width:1290px){
    .left h1{ font-size:45px; }
    .login-card{ max-width:480px; }
    .feature h4{ font-size:15px; }
    .login-card h2{ font-size:36px; }
}

@media (min-width:1000px) and (max-width:1050px){
    .left h1{ font-size:32px; }
    .login-card{ max-width:380px; }
    .feature h4{ font-size:15px; }
    .login-card h2{ font-size:28px; }
    .right{ align-items:start; padding-top:100px; }
}

@media (max-width:1024px) and (max-height:900px){
    .login-card > p{ font-size:14px; }
    .login-card h2{ font-size:28px; }
}

@media (max-width:1000px){
    .line{ margin:25px auto 0; }
    .login-card h2{ font-size:24px; }
}

@media (max-width:992px){
    body{ overflow:auto; }
    .wrapper{ flex-direction:column; overflow:auto; }
    .left{ width:100%; padding:40px 25px; text-align:center; }
    .feature-box{ margin:30px auto 0; max-width:500px; }
    .right{ width:100%; padding:40px 20px; }
    .login-card{ width:90%; max-width:460px; }
}

@media (max-width:768px){
    .line{ display:none; }
    .subtitle{ display:none; }
    .description{ display:none; }
    .feature-box{ display:none; }
    .logo{ margin-bottom:0px; }
}

@media (max-width:700px){
    .left h1{ font-size:25px; }
    .right{ padding-top:0px; }
}

@media (max-width:576px){
    .login-card{ padding:30px 20px; }
    .input-box input{ padding:12px 40px; }
    .btn-login{ font-size:16px; }
}

@media screen and (min-width:1450px){
    .feature h4{ font-size:20px; }
    .feature small{ font-size:18px; }
    .feature-box{ max-width:709px; }
    .logo{ margin-top:60px; }
}

@media screen and (min-width:1200px){
    .logo{ margin-top:60px; }
}
