@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');

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

html,
body,
#root {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  background: #25252b;
  overflow-x: hidden;
}

/* ===============================
   PAGE LAYOUT
================================ */

.login-page {
  position: relative;
  width: 100%;
  min-height: 100dvh;
  background: #25252b;
  overflow: hidden;
}

/* Fullscreen particles behind content */
.particles-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  z-index: 1;
  overflow: hidden;
}

/* Make sure particle canvas fills area */
.particles-container canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.center-page {
  position: relative;
  z-index: 2;
  min-height: 100dvh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: transparent;
  padding: 16px;
  pointer-events: none;
}

/* ===============================
   MAIN CONTAINER
================================ */

.container {
  position: relative;
  width: min(750px, 100%);
  max-width: 750px;
  min-height: 500px;
  border: 2px solid #e46033;
  box-shadow: 0 0 25px #e46033;
  overflow: hidden;
  background: rgba(37, 37, 43, 0.9);
  border-radius: 15px;
  z-index: 3;
  pointer-events: auto;
}

/* ===============================
   FORM PANELS - DESKTOP
================================ */

.container .form-box {
  position: absolute;
  top: 0;
  width: 50%;
  height: 100%;
  display: flex;
  justify-content: center;
  flex-direction: column;
  transition: all 0.7s ease;
}

.form-box.Login {
  left: 0;
  padding: 0 40px;
  z-index: 2;
}

.container.active .form-box.Login {
  transform: translateX(-120%);
  opacity: 0;
  pointer-events: none;
}

.form-box.Register {
  right: 0;
  padding: 0 60px;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateX(120%);
}

.container.active .form-box.Register {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

/* ===============================
   TYPOGRAPHY
================================ */

.form-box h2 {
  font-size: 32px;
  text-align: center;
  line-height: 1.2;
}

/* ===============================
   INPUTS
================================ */

.form-box .input-box {
  position: relative;
  width: 100%;
  height: 50px;
  margin-top: 20px;
}

.input-box input {
  width: 100%;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
  border-bottom: 2px solid #fff;
  padding-right: 28px;
  transition: 0.5s;
}

.input-box input:focus,
.input-box input:valid {
  border-bottom: 2px solid #e46033;
}

.input-box label {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  font-size: 16px;
  color: #fff;
  transition: 0.5s;
  pointer-events: none;
}

.input-box input:focus ~ label,
.input-box input:valid ~ label {
  top: -5px;
  color: #e46033;
}

/* ===============================
   SELECT
================================ */

.input-box .select-container {
  width: 100%;
  height: 50px;
}

.input-box .select-container .react-select__control {
  height: 50px;
  min-height: 50px;
  background: transparent;
  border: 2px solid #fff;
  border-radius: 4px;
  box-shadow: none;
}

.input-box .select-container .react-select__control--is-focused {
  border-color: #e46033;
  box-shadow: none;
}

.input-box .select-container .react-select__single-value {
  color: #fff;
}

.input-box .select-container .react-select__placeholder {
  color: #fff;
}

.input-box .select-container .react-select__menu {
  background: #25252b;
  color: #fff;
  z-index: 20;
}

.css-xwzqus-control,
.css-hlgwow,
.css-19bb58m {
  font-size: 10px;
}
.faculty-select-box {
  position: relative;
  z-index: 20;
}

.faculty-select-box .react-select__control {
  min-height: 40px !important;
  background-color: #25252b;
}

.faculty-select-box .react-select__menu {
  z-index: 99999 !important;
}

.faculty-select-box .react-select__option {
  font-size: 13px;
  line-height: 1.35;
}
.react-select__control.css-1xtbuh5-control {
    background-color: #2a2a33;
}

/* ===============================
   BUTTONS
================================ */

.btn {
  position: relative;
  width: 100%;
  height: 45px;
  background: transparent;
  border-radius: 40px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid #e46033;
  overflow: hidden;
  margin-top: 10px;
  z-index: 1;
}

.btn::before {
  content: "";
  position: absolute;
  height: 300%;
  width: 100%;
  background: linear-gradient(#25252b, #e46033, #25252b, #e46033);
  top: -100%;
  left: 0;
  z-index: -1;
  transition: 0.5s;
}

.btn:hover::before {
  top: 0;
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ===============================
   LINKS / MESSAGES
================================ */

.regi-link {
  font-size: 14px;
  text-align: center;
  margin: 15px 0 5px;
  cursor: pointer;
}

.regi-link span {
  color: #e46033;
  font-weight: 600;
}

.regi-link span:hover {
  text-decoration: underline;
}

.forgot-password {
  margin: 10px 0 20px 0;
  text-align: right;
  font-size: 14px;
}

.forgot-password .forgot-link {
  color: #0072ce;
  cursor: pointer;
  font-size: 0.9rem;
  text-decoration: underline;
  transition: color 0.2s ease, transform 0.2s ease;
}

.forgot-password .forgot-link:hover {
  color: #005a9c;
  transform: scale(1.05);
}

.forgot-password .forgot-link::selection {
  background: transparent;
}

.error-message {
  color: #ff4d4f;
  font-size: 14px;
  margin-top: 5px;
  margin-bottom: 10px;
  text-align: left;
}

.success-message {
  color: #00ff99;
  font-size: 14px;
  margin-top: 5px;
  margin-bottom: 10px;
  text-align: left;
}

/* ===============================
   PASSWORD TOGGLE
================================ */

.password-box {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 18px;
  user-select: none;
  color: #fff;
  z-index: 3;
}

/* ===============================
   LOGO / DECOR
================================ */

.curved-shape,
.curved-shape2 {
  transition: 1.5s ease;
}

.uj-logo {
  position: absolute;
  width: 120px;
  height: auto;
  top: 20px;
  transition: all 0.7s ease;
  z-index: 3;
}

.logo-right {
  right: -350px;
}

.logo-left {
  left: -350px;
}

/* ===============================
   BACKGROUND SHAPES
================================ */

.container .curved-shape {
  position: absolute;
  right: 0;
  top: -5px;
  height: 600px;
  width: 850px;
  background: linear-gradient(45deg, #25252b, #e46033);
  transform: rotate(10deg) skewY(40deg);
  transform-origin: bottom right;
  transition: 1.5s ease;
  transition-delay: 1.6s;
}

.container.active .curved-shape {
  transform: rotate(0deg) skewY(0deg);
  transition-delay: 0.5s;
}

.container .curved-shape2 {
  position: absolute;
  left: 250px;
  top: 100%;
  height: 700px;
  width: 850px;
  background: #25252b;
  border-top: 3px solid #e46033;
  transform: rotate(0deg) skewY(0deg);
  transform-origin: bottom left;
  transition: 1.5s ease;
  transition-delay: 0.5s;
}

.container.active .curved-shape2 {
  transform: rotate(-11deg) skewY(-44deg);
  transition-delay: 1.2s;
}

/* ===============================
   TABLET
================================ */

@media (max-width: 900px) {
  .container {
    width: 100%;
    max-width: 620px;
    min-height: 560px;
    height: auto;
  }

  .form-box.Login,
  .form-box.Register {
    padding-left: 30px;
    padding-right: 30px;
  }

  .container .curved-shape {
    width: 700px;
    height: 520px;
  }

  .container .curved-shape2 {
    width: 700px;
    height: 600px;
    left: 180px;
  }
}

/* ===============================
   MOBILE
================================ */

@media (max-width: 768px) {
  .center-page {
    padding: 14px;
  }

  .container {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    height: auto;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-radius: 14px;
    padding: 0;
    gap: 0;
  }

  .container .form-box {
    position: relative !important;
    width: 100% !important;
    height: auto !important;
    min-height: auto !important;
    padding: 30px 20px !important;
    transform: none !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    justify-content: center;
  }

  .form-box.Login,
  .form-box.Register {
    left: auto !important;
    right: auto !important;
    width: 100% !important;
    padding: 30px 20px !important;
  }

  .form-box.Register {
    display: none !important;
  }

  .container.active .form-box.Login {
    display: none !important;
  }

  .container.active .form-box.Register {
    display: flex !important;
  }

  .container.active .form-box.Login,
  .container.active .form-box.Register {
    transform: none !important;
  }

  .form-box h2 {
    font-size: 26px;
    line-height: 1.2;
    margin-bottom: 8px;
    text-align: center;
  }

  .form-box .input-box {
    height: 48px;
    margin-top: 18px;
  }

  .input-box input {
    font-size: 15px;
    padding-right: 35px;
  }

  .input-box label {
    font-size: 15px;
  }

  .input-box .select-container,
  .input-box .select-container .react-select__control {
    height: 48px;
    min-height: 48px;
  }

  .btn {
    height: 46px;
    font-size: 15px;
    margin-top: 14px;
  }

  .regi-link,
  .forgot-password,
  .error-message,
  .success-message {
    font-size: 13px;
  }

  .toggle-password {
    right: 8px;
    font-size: 16px;
  }

  .container .curved-shape,
  .container .curved-shape2 {
    display: none !important;
  }

  .uj-logo {
    position: static !important;
    display: block;
    margin: 0 auto 14px auto;
    width: 90px;
  }

  .logo-right,
  .logo-left {
    right: auto !important;
    left: auto !important;
  }
}

/* ===============================
   SMALL PHONES
================================ */

@media (max-width: 480px) {
  .center-page {
    padding: 10px;
  }

  .container {
    border-width: 1px;
    box-shadow: 0 0 14px rgba(228, 96, 51, 0.65);
    border-radius: 12px;
  }

  .form-box.Login,
  .form-box.Register,
  .container .form-box {
    padding: 24px 16px !important;
  }

  .form-box h2 {
    font-size: 22px;
  }

  .form-box .input-box {
    height: 46px;
    margin-top: 16px;
  }

  .input-box input,
  .input-box label {
    font-size: 14px;
  }

  .input-box .select-container,
  .input-box .select-container .react-select__control {
    height: 46px;
    min-height: 46px;
  }

  .btn {
    height: 44px;
    font-size: 14px;
  }

  .regi-link {
    margin-top: 14px;
    line-height: 1.5;
  }

  .forgot-password {
    margin-top: 8px;
  }

  .uj-logo {
    width: 78px;
    margin-bottom: 10px;
  }
}

/* ===== Vanilla additions ===== */
.hidden{display:none!important;}
.particles-fallback{
  position:fixed; inset:0; z-index:1; pointer-events:none;
  background:
    radial-gradient(circle at 20% 20%, rgba(228,96,51,.18), transparent 18%),
    radial-gradient(circle at 80% 30%, rgba(255,255,255,.10), transparent 20%),
    radial-gradient(circle at 60% 80%, rgba(228,96,51,.12), transparent 18%);
}
.page-shell{position:relative; z-index:2;}
select.native-select, textarea, .table-input, .table-select, .form-group input, .form-group select, .form-group textarea{
  width:100%; padding:10px 12px; border-radius:8px; border:1px solid #555; background:#2a2a33; color:#fff;
}
textarea{min-height:90px; resize:vertical;}
.message-box{margin:10px 0; padding:12px 14px; border-radius:10px; font-size:13px; line-height:1.5;}
.message-box.error{background:linear-gradient(135deg, rgba(255,107,107,0.16), rgba(255,77,77,0.10)); border:1px solid rgba(255,107,107,0.35); color:#ffd3d3;}
.message-box.success{background:rgba(90, 200, 120, 0.14); border:1px solid rgba(90, 200, 120, 0.35); color:#d8ffe1;}
.regi-link span, .forgot-link, .toggle-password, .fake-link{cursor:pointer;}
.simple-select-wrap{margin-top:20px;}
.simple-select-wrap label{display:block; margin-bottom:8px; color:#fff; font-size:14px;}
.native-select{height:42px;}
.login-page .container{min-height:560px;}
