@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;
}

body{
    background-color: #000;
    color: #fff;
}


nav{
    display: flex;
    padding: 20px;
    justify-content: space-around;
    align-items: center;
    font-size: 18x;
    background-color: #510064;
}

.logo a{
    text-decoration: none;
    color: white;
}

nav .authbtns{
    display: flex;
    gap: 10px;
    align-items: center;
    
}


.authbtns a{
    text-decoration: none;
    display: block;
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    color: #510064;
    transition: all 0.2s linear;
}

.logout{
    background-color: white;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    color: #510064;
    transition: all 0.2s linear;
}

.authbtns a:hover{
    transform: translateY(-3px);
}

.logout:hover{
    transform: translateY(-3px);
}
.hamburger{
    display: none;
    cursor: pointer;
}

.side-nav{
    height: 100vh;
    width: 0px;
    transition: all 0.2s linear;
    position: fixed;
    right: 0px;
    background-color: white;
    color: black;
    overflow-x: hidden;
    z-index: 2000;
}

.cross-container{
    display: flex;
    justify-content: right;
}
.side-nav .x{
    font-size: 20px;
    padding: 5px 15px;
    border: 1px solid black;
    border-radius: 7px;
    display: inline-block;
    cursor: pointer;
    color: black;
    font-weight: 400;
}

.side-nav-authbtns{
    margin-top: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.side-nav-authbtns a{
    text-decoration: none;
    background-color: #510064;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 7px;
    transition: all 0.1s linear;
    display: block;
}

.side-nav-authbtns .logout{
    background-color: #510064;
    color: white;
    padding: 10px;
    border: none;
    border-radius: 7px;
    transition: all 0.1s linear;
}

.side-nav-authbtns a:hover{
    transform: scale(1.1);
}

.side-nav-authbtns .logout:hover{
    transform: scale(1.1);
}
.show-side-nav{
    border-left: 1px solid white;
    display: block;
    width: 40vw;
    padding: 5px 15px;
}


.main-container{
    background-color: #000;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    color: #fff;
}


/* Signup Card */
.signup-container {
    background-color: #111;
    padding: 30px;
    width: 100%;
    max-width: 380px;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(255,255,255,0.08);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hide-signup-container{
    display: none;
}

.signup-container h2 {
    text-align: center;
    margin-bottom: 10px;
}

/* Inputs */
.signup-container input {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #333;
    background-color: #000;
    color: #fff;
    outline: none;
}

.signup-container input:focus {
    border-color: #510064;
}

.showuserIdMsg{
    display: none;
   font-size: 13px;
   margin-top: -5px;
}

/* Button */
.signup-container button {
    padding: 12px;
    background-color: #510064;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s;
}

 @keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.submit-loader{
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}


.signup-container button:hover {
    background-color: #66067b;
}

/* Text */
.signup-container p {
    text-align: center;
    font-size: 14px;
}

.signup-container span {
    color: white;
    cursor: pointer;
}

.signup-container span:hover {
    text-decoration: underline;
}


.verification-card {
  display: none;
}

.show-verification-card{
    display: block;
}

.verification-card h2 {
  margin-bottom: 10px;
}

.verification-card h3{
    margin: 10px 0px;
}

.verification-card p {
  color: #555;
  margin-bottom: 20px;
}

.code-inputs {
  display: flex;
  justify-content: space-between;
  margin-bottom: 25px;
}

.code-inputs input {
  width: 45px;
  height: 55px;
  font-size: 22px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 8px;
  outline: none;
}

.code-inputs input:focus {
  border-color: #667eea;
}

#verifyBtn{
  padding: 12px;
  width: 100%;
  border: none;
  background: #667eea;
  color: white;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  }

 #verifyBtn .loader {
  display: none;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

#verifyBtn:hover {
  background: #5a67d8;
}

.code-resend-box{
    margin-bottom: 15px;
}

.code-resend-box .resend-code-btn{
    background: none;
    border: none;
    color: white;
    padding: 10px;
    background-color: #66067b;
    cursor: pointer;
    border-radius: 10px;
    margin: 0px 10px;
    width: 200px;
    box-sizing: border-box;
}

    

.resendCodeLoader{
    display: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 4px solid black;
    border-right-color: white;
    margin: 0px auto;
    animation: spin 0.8s linear infinite;
}

.time-lapse{
    display: inline-block;
}


/* Mobile */
@media (max-width: 480px) {
    .signup-container {
        margin: 0 15px;
    }
}

@media screen and (max-width: 550px) {
   body nav .authbtns{
        display: none;
    }

    .hamburger{
        display: block;
    }

    .verification-card{
        width: 90vw;
    }

    .code-inputs input{
        width: 55px;
        height: 45px;
        font-size: 16px;
    }
}

@media screen and (max-width: 390px){
     .code-inputs input{
        width: 40px;
        height: 45px;
        font-size: 16px;
    }
}

@media screen and (max-width: 300px){
    .code-inputs{
        flex-wrap: wrap;
    }
     .code-inputs input{
        width: 30px;
        height: 45px;
        font-size: 16px;
    }
}
