/* theme color : #2255D4 #9558E4 */
/* =========================
   GLOBAL THEME COLORS
========================= */
:root {
  --primary: #2255D4;
  --secondary: #9558E4;
  --light-bg: #f3f6ff;
  --text-dark: #111827;
}

/* =========================
   BODY BACKGROUND
========================= */
body.login-layout {
  background: var(--light-bg);
  font-family: 'Segoe UI', sans-serif;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Decorative Circles */
body.login-layout::before,
body.login-layout::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  z-index: -1;
}

/* Top-left circle */
/* =========================
   TOP-LEFT CIRCLE (GRADIENT)
========================= */
body.login-layout::before {
  width: 450px;
  height: 450px;
  left: -150px;
  top: -100px;

  background: radial-gradient(
    circle at top left,
    #2255D4 0%,
    #9558E4 100%
  );

  box-shadow: 0 0 0 60px rgba(34, 85, 212, 0.12);
}

/* =========================
   BOTTOM-RIGHT CIRCLE (GRADIENT REVERSED)
========================= */
body.login-layout::after {
  width: 420px;
  height: 420px;
  right: -120px;
  bottom: -140px;

  background: radial-gradient(
    circle at bottom right,
    #9558E4 0%,
    #2255D4 100%
  );

  box-shadow: 0 0 0 60px rgba(149, 88, 228, 0.12);
}

/* =========================
   CONTAINER
========================= */
.login-container {
  width: 100%;
  max-width: 900px;
  z-index: 10;
}

/* =========================
   TITLE AREA
========================= */
.login-title {
  text-align: center;
  margin-bottom: 40px;
}

.company-logo {
  max-width: 180px;
  height: auto;
}

/* =========================
   LOGIN BOX
========================= */
.custom-login-box {
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.08);
  padding: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  border: 1px solid #eef0f5;
}

/* Left Side */
.login-left {
  width: 50%;
}

/* Right Side */
.login-right {
  width: 50%;
  text-align: right;
}

.login-right img {
  width: 100%;
  max-width: 320px;
}

/* =========================
   INPUT DESIGN
========================= */
.input-icon {
  position: relative;
  margin-bottom: 22px;
}

.input-icon i {
  position: absolute;
  top: 16px;
  left: 20px;
  font-size: 18px;
  color: var(--primary);
}

.login-input {
  height: 52px;
  border: 2px solid var(--primary) !important;
  border-radius: 50px !important;
  padding-left: 55px !important;
  font-size: 16px;
  background: #fff;
  width: 100%;
  transition: 0.3s ease;
}

/* Focus effect */
.login-input:focus {
  border-color: var(--secondary) !important;
  box-shadow: 0 0 12px rgba(149, 88, 228, 0.25);
  outline: none;
}

/* =========================
   LOGIN BUTTON
========================= */
.login-btn {
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-btn:hover {
  background: linear-gradient(135deg, #1b47b8, #7d3fd6);
  box-shadow: 0 8px 20px rgba(34, 85, 212, 0.3);
  transform: translateY(-1px);
}

/* =========================
   ERROR MESSAGE
========================= */
.error-msg {
  color: red;
  font-size: 14px;
  margin-bottom: 10px;
}

/* =========================
   POWERED BY
========================= */
.powered-text {
  position: fixed;
  right: 30px;
  bottom: 25px;
  font-size: 14px;
  font-weight: 600;
  color: #111;
}

.powered-text span {
  text-decoration: underline;
  text-transform: uppercase;
  color: var(--primary);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
  .custom-login-box {
    flex-direction: column-reverse;
    padding: 30px;
    margin: 15px;
    gap: 20px;
  }

  .login-left,
  .login-right {
    width: 100%;
    text-align: center;
  }

  .login-title {
    margin-bottom: 25px;
  }

  .company-logo {
    max-width: 140px;
  }
}