@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body{
    margin:0;
    min-height:100vh;
    background:#A2DADB;
    background:linear-gradient(135deg,#A2DADB,#006885);
    display:flex;
    justify-content:center;
    align-items:center;
    padding:20px;
}

.container {
  background-color: #fff;
  border-radius: 30px;
  box-shadow:
    rgba(50, 50, 93, 0.25) 0px 50px 100px -20px,
    rgba(0, 0, 0, 0.3) 0px 30px 60px -30px,
    rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;

  position: relative;
  overflow: hidden;
  width:100%;
  max-width:900px;
  min-height:560px;

  border-radius:24px;
}

.container span{
    margin-bottom:20px;
    display:block;
}

.container p {
  font-size: 14px;
  line-height: 20px;
  letter-spacing: 0.3px;
  margin: 20px 0;
}

.container span {
  font-size: 12px;
}

.container a {
  color: #333;
  font-size: 13px;
  text-decoration: none;
  margin: 15px 0 10px;
  cursor: pointer;
}

.container button {
  background-color: rgb(0 104 133);
  color: #fff;
  width:100%;
  height:46px;
  font-size: 14px;
  padding: 10px 45px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.container button:hover {
  background-color: rgb(0 170 173);
  transform: translateY(-2px);
}

.container button:disabled {
  background-color: #ccc;
  cursor: not-allowed;
  transform: none;
}

.container button.hidden {
  background-color: transparent;
  border-color: #fff;
}

.container button.hidden:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.container form {
  background-color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 40px;
  height: 100%;
}

.container input {
  background-color: #eee;
  border: none;
  margin: 8px 0;
  padding: 10px 15px;
  height:46px;
  font-size:14px;
  border-radius: 8px;
  width: 100%;
  outline: none;
  transition: all 0.3s ease;
}

.container input:focus {
  background-color: #e0e0e0;
  transform: scale(1.02);
}

.form-container {
  position: absolute;
  top: 0;
  height: 100%;
  transition: all 0.6s ease-in-out;
}

.login-logo {
  width: 130px;
  height: auto;
  display: block;
  margin:0 auto 20px;
}

.sign-in {
  left: 0;
  width: 50%;
  z-index: 2;
}

.container.active .sign-in {
  transform: translateX(100%);
}

.sign-up {
  left: 0;
  width: 50%;
  opacity: 0;
  z-index: 1;
}

.container.active .sign-up {
  transform: translateX(100%);
  opacity: 1;
  z-index: 5;
  animation: move 0.6s;
}

/* ======================
TOKEN INPUT GROUP
====================== */

.token-input-group {

  position: relative;

  width: 100%;
}

.token-input-group input {

  width: 100%;

  padding-right: 52px;
}

.toggle-token-btn {

  position: absolute;

  top: 50%;
  right: 14px;

  transform: translateY(-50%);

  border: none;
  background: transparent;

  cursor: pointer;

  color: #006885;

  font-size: 16px;

  padding: 0;
}

.toggle-token-btn:hover {

  color: #00AAAD;
}

/* TOKEN WRAPPER */
.token-input-wrapper {

  position: relative;

  width: 100%;
}

/* TOKEN INPUT */
.token-input {

  width: 100%;

  padding: 14px 50px 14px 16px;

  border-radius: 14px;

  border: 1px solid #d1d5db;

  outline: none;

  font-size: 14px;

  transition: 0.3s;
}

.token-input:focus {

  border-color: #00AAAD;

  box-shadow:
    0 0 0 3px rgba(0,170,173,0.15);
}

/* EYE ICON */
.token-eye {

  position: absolute;

  right: 16px;

  top: 50%;

  transform: translateY(-50%);

  font-size: 16px;

  color: #7b8794;

  cursor: pointer;

  user-select: none;

  transition: 0.2s;
}

.login-title{
    font-size:30px;
    color:#006885;
    margin-bottom:20px;
    text-align:center;
    font-weight:700;
}

.toggle-title{
    font-size:24px;
    color:#fff;
    margin-bottom:15px;
    font-weight:700;
}

.token-eye:hover {

  color: #006885;
}

/* ======================
PASSWORD WRAPPER
====================== */

.password-wrapper {

  position: relative;

  width: 100%;
}

/* PASSWORD INPUT */

.password-wrapper input {

  width: 100%;

  padding-right: 48px;
}

/* EYE ICON */

.password-eye {

  position: absolute;

  top: 50%;
  right: 16px;

  transform: translateY(-50%);

  font-size: 16px;

  color: #8b8b8b;

  cursor: pointer;

  transition: 0.2s ease;
}

.password-eye:hover {

  color: #006885;
}

@keyframes move {
  0%,
  49.99% {
    opacity: 0;
    z-index: 1;
  }

  50%,
  100% {
    opacity: 1;
    z-index: 5;
  }
}

.social-icons {
  margin: 20px 0;
}

.social-icons .icon i {
  color: #FFF;
}

.social-icons a {
  border: 1px solid #ccc;
  border-radius: 20%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin: 0 3px;
  width: 40px;
  height: 40px;
  transition: all 0.3s ease;
}

.social-icons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.toggle-container {
  position: absolute;
  top: 0;
  left: 50%;
  width: 50%;
  height: 100%;
  overflow: hidden;
  transition: all 0.6s ease-in-out;
  border-radius: 150px 0 0 100px;
  z-index: 1000;
}

.container.active .toggle-container {
  transform: translateX(-100%);
  border-radius: 0 150px 100px 0;
}

.toggle {
  background-color: #00AAAD;
  height: 100%;
  background: linear-gradient(to right, #A2DADB, #006885);
  color: #fff;
  position: relative;
  left: -100%;
  height: 100%;
  width: 200%;
  transform: translateX(0);
  transition: all 0.6s ease-in-out;
}

.container.active .toggle {
  transform: translateX(50%);
}

.toggle-panel {
  position: absolute;
  width: 50%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 30px;
  text-align: center;
  top: 0;
  transform: translateX(0);
  transition: all 0.6s ease-in-out;
}

.toggle-left {
  transform: translateX(-200%);
}

.container.active .toggle-left {
  transform: translateX(0);
}

.toggle-right {
  right: 0;
  transform: translateX(0);
}

.container.active .toggle-right {
  transform: translateX(200%);
}

/* Loading spinner */
.spinner {
  border: 3px solid #f3f3f3;
  border-top: 3px solid #006885;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  animation: spin 1s linear infinite;
  display: inline-block;
  margin-left: 10px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Success/Error messages */
.message {
  padding: 10px;
  margin: 10px 0;
  border-radius: 5px;
  font-size: 12px;
  text-align: center;
  display: none;
}

.message.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.message.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* OTP Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 10000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
}

.modal-content {
  background-color: #fff;
  margin: 15% auto;
  padding: 30px;
  border-radius: 15px;
  width:min(420px,92vw);
  padding:24px;
  border-radius:18px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.modal h2 {
  color: #006885;
  margin-bottom: 20px;
}

.modal input {
  background-color: #eee;
  border: none;
  margin: 15px 0;
  padding: 15px;
  font-size: 16px;
  border-radius: 8px;
  width: 100%;
  outline: none;
  text-align: center;
  letter-spacing: 2px;
}

.modal button {
  background-color: rgb(0 104 133);
  color: #fff;
  font-size: 14px;
  padding: 12px 30px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  margin: 10px 5px;
  transition: all 0.3s ease;
}

.modal button:hover {
  background-color: rgb(0 170 173);
  transform: translateY(-2px);
}

.modal .close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  line-height: 1;
}

.modal .close:hover {
  color: #000;
}

.otp-timer {
  color: #666;
  font-size: 12px;
  margin-top: 10px;
}

@media (max-width:768px){

.container{

    max-width:650px;

    min-height:520px;
}

.container form{

    padding:30px;
}

.toggle-panel{

    padding:20px;
}

@media (max-width:576px){

body{

    padding:15px;
}
}

.container{

    width:100%;
    min-height:auto;

    border-radius:20px;

    overflow:hidden;
}

.form-container{

    position:relative;

    width:100% !important;

    height:auto;

    transform:none !important;
}

.sign-in,
.sign-up{

    width:100%;

    left:0;
}
	
.sign-up{

    display:none;

    opacity:1;
}

.container.active .sign-up{

    display:block;
}

.container.active .sign-in{

    display:none;
}
	
.toggle-container{

    position:relative;

    left:0;

    width:100%;

    height:auto;

    border-radius:0;

    overflow:visible;
}
	
.toggle{

    width:100%;

    left:0;

    transform:none !important;

    padding:25px 20px;
}
	
.toggle-panel{

    position:relative;

    width:100%;

    height:auto;

    transform:none !important;

    padding:0;
}
	
.toggle-left{

    display:none;
}

.container.active .toggle-left{

    display:block;
}

.toggle-right{

    display:block;
}

.container.active .toggle-right{

    display:none;
}

.social-icons{

    margin:18px 0;
}

.social-icons a{

    width:42px;
    height:42px;
}
	
.container button{

    width:100%;
}
	

.container p{

    font-size:13px;
}

.login-logo{

    width:110px;
}

.modal-content{

    margin:25% auto;
}