/* ===============================
   LOGIN PAGE — FINAL STYLE
   File: /assets/css/pages/login.css
   =============================== */

*{
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

/* BODY */
.login-body{
  margin: 0;
  min-height: 100vh;
  background: #3576f6;
  overflow: hidden;
}

/* WRAPPER */
.login-wrapper{
  display: flex;
  height: 100vh;
}

/* ===============================
   LEFT SIDE (TEXT)
   =============================== */
.login-left{
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 90px;

  animation: fadeLeft .8s ease forwards;
}

.login-brand{
  position: relative;
  padding-left: 26px;
}

.login-brand h1{
  color: #ffffff;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.15;
}

/* GARIS VERTIKAL */
.login-brand::before{
  content: "";
  position: absolute;
  left: 0;
  top: 6px;

  width: 4px;
  height: calc(100% - 12px);

  background: rgba(255,255,255,.95);
  border-radius: 4px;

  animation: growLine .7s ease forwards;
}

/* ===============================
   RIGHT SIDE (CARD)
   =============================== */
.login-right{
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;

  animation: fadeRight .9s ease forwards;
}

/* CARD */
.login-card{
  width: 360px;
  background: #ffffff;
  border-radius: 14px;
  padding: 28px 26px;
  box-shadow: 0 24px 50px rgba(0,0,0,.25);
}

/* TITLE */
.login-title{
  text-align: center;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 18px;
}

/* INPUT */
.login-card input{
  width: 100%;
  padding: 13px 14px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  font-size: 14px;
  margin-bottom: 18px;
}

.login-card input:focus{
  outline: none;
  border-color: #3576f6;
}

/* BUTTON */
.login-card button{
  width: 100%;
  padding: 13px;
  border: none;
  border-radius: 8px;
  background: #3576f6;
  color: #ffffff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .2s ease, transform .15s ease;
}

.login-card button:hover{
  background: #2563eb;
  transform: translateY(-1px);
}

/* ===============================
   ANIMATIONS
   =============================== */
@keyframes fadeLeft{
  from{
    opacity: 0;
    transform: translateX(-40px);
  }
  to{
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeRight{
  from{
    opacity: 0;
    transform: translateX(40px);
  }
  to{
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes growLine{
  from{
    height: 0;
    opacity: 0;
  }
  to{
    height: calc(100% - 12px);
    opacity: 1;
  }
}

/* ERROR MESSAGE */
.login-error{
  background:#fee2e2;
  color:#991b1b;
  font-size:13px;
  padding:10px 12px;
  border-radius:8px;
  margin-bottom:14px;
  text-align:center;
  font-weight:500;
}

