@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

/* Layout */
.page-wrapper {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(to right, #dbeafe, #eef2ff);
}

.left-panel {
    flex: 1;
    background: linear-gradient(135deg, #5c6ac4, #667eea);
    color: white;
    padding: 50px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-top-right-radius: 200px;
    border-bottom-right-radius: 200px;
}
.left-logo {
    width: 230px;              /* or 220px for slightly bigger */
    max-width: 100%;            /* keep it responsive */
    margin-bottom: 40px;       /* give more spacing under it */
    transition: transform 0.4s ease;
}

.left-title {
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 15px;
}

.left-desc {
    font-size: 16px;
    max-width: 400px;
}

.right-panel {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
}
.login-box {
    background: #fff;
    width: 100%;
    max-width: 400px;
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.login-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 10px;
    text-align: center;
    color: #333;
}

.login-subtitle {
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
    color: #666;
}

/* Inputs */
.input-field {
    position: relative;
    margin-bottom: 20px;
}

.input-field input {
    width: 100%;
    padding: 12px 42px 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #f8f9fa;
    font-size: 14px;
    transition: all 0.2s ease-in-out;
    color: #333;
}

.input-field input:focus {
    outline: none;
    background: #fff;
    border-color: #7494ec;
}

.input-field i {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #aaa;
}

/* Footer */
.form-footer {
    text-align: right;
    margin-bottom: 20px;
}

.forgot-link {
    font-size: 13px;
    color: #7494ec;
    text-decoration: none;
}

.forgot-link:hover {
    text-decoration: underline;
}

/* Button */
.login-button {
    width: 100%;
    background: #5c6ac4;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.login-button:hover {
    background: #4b59aa;
}

/* SweetAlert */
.custom-swal-popup {
    border-radius: 10px;
}
.custom-swal-title {
    font-size: 1.5em;
}
.custom-swal-button {
    padding: 10px 20px;
    font-size: 1em;
}

/* Responsive */
@media (max-width: 768px) {
    .page-wrapper {
        flex-direction: column;
    }

    .left-panel {
        display: none;
    }

    .right-panel {
        padding: 20px;
    }

    .login-box {
        padding: 30px 20px;
    }
}
/* Fade In Up Animation */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
  /* Apply the animation to the login box */
.login-box {
    animation: fadeInUp 0.8s ease;
}
/* Hover Animation */
.left-logo {
    transition: transform 0.4s ease;
}
.left-logo:hover {
    transform: scale(1.05);
}
/* Slide-in from left animation */
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

.left-panel {
    animation: slideInFromLeft 0.4s ease-out forwards;
}
/* Hide mobile-only elements on desktop */
.mobile-logo,
.mobile-welcome,
.mobile-subtext {
  display: none;
}

/* Mobile layout: screen ≤ 768px */
@media screen and (max-width: 768px) {
  .page-wrapper {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #5c6ac4;
    height: 100vh;
    padding: 0;
  }

  .left-panel {
    display: none;
  }

  .right-panel {
    width: 100%;
    height: 100vh;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
  }

  .mobile-logo {
    display: block;
    width: 210px;
    margin-bottom: 25px;
  }

  .mobile-welcome {
    display: block;
    color: white;
    font-size: 28px;
    font-weight: 500;
    text-align: center;
    margin-bottom: 20px;
  }

  .mobile-footer-text {
    display: block;
    color: #e0e0e0;
    font-size: 14px;
    text-align: center;
    margin-bottom: 30px;
  }

  .login-box {
    width: 100%;
    max-width: 360px;
    padding: 30px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  }

  .login-title,
  .login-subtitle {
    text-align: center;
    color: #333;
  }

  .login-button {
    font-size: 14px;
    padding: 10px;
    width: 100%;
  }

  .input-group input {
    font-size: 14px;
    padding: 10px 14px 10px 40px;
  }

  .options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
  }
}

/* Default: Hide mobile header */
.mobile-header {
  display: none;
}

/* MOBILE VIEW OVERRIDES */
@media screen and (max-width: 768px) {
  .page-wrapper {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #5c6ac4;
    min-height: 100vh;
    padding: 0;
  }

  .left-panel {
    display: none;
  }

  .right-panel {
    width: 100%;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
  }

  .mobile-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
  }

  .mobile-logo {
    display: block;
    width: 180px;
    margin-bottom: 15px;
  }

  .mobile-welcome {
    color: white;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 5px;
  }

  .mobile-footer-text {
    color: #e0e0e0;
    font-size: 14px;
    text-align: center;
  }

  .login-box {
    background: white;
    padding: 30px 20px;
    border-radius: 16px;
    width: 100%;
    max-width: 360px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  }
}

