*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Segoe UI', sans-serif;
}

body{
  min-height:100vh;
  background:linear-gradient(135deg, #080808 0%, #545557 100%);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;
  color:#111827;
}
.hidden {
    display: none !important;
}


.auth-page{
  width:100%;
  max-width:460px;
}

.auth-card{
  background:white;
  border-radius:24px;
  box-shadow:0 24px 60px rgba(15, 23, 42, 0.08);
  padding:40px;
}

.auth-card h1{
  font-size:32px;
  margin-bottom:10px;
  color:#1f2937;
   text-align:center;
}

.auth-card p{
  color:#4b5563;
  margin-bottom:28px;
  line-height:1.7;
}


.terms-label {
  display: flex;
  justify-content: flex-start;   
  align-items: center;
  gap: 12px;                   
  margin-top: 25px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
}
.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.password-wrapper input{
  width:100%;
  padding:14px 45px 14px 16px;
  border:1px solid #d1d5db;
  border-radius:14px;
  box-sizing:border-box;
  font-size: 15px;
  outline: none;
  background-color: #fff;
  color: #374151;
}
.toggle-password{
    position:absolute;
    top:50%;
    right:12px;
    transform:translateY(-50%);
    width:22px;
    height:22px;
    border:none;
    background:transparent;
    padding:0;
    cursor:pointer;

    display:flex;
    align-items:center;
    justify-content:center;
}
.toggle-password svg {
  width: 16px;
  height: 16px;
}
.password-wrapper .eye-open { display: none; }     /* Hide open eye initially */
.password-wrapper .eye-slashed { display: block; } /* Show slashed eye initially */

/* When password text is revealed, flip the icon visibility rules */
.password-wrapper.is-visible .eye-open { display: block; }
.password-wrapper.is-visible .eye-slashed { display: none; }

.terms-label input {
  width: 16px;
  height: 16px;
  margin-left: 8px; 
  accent-color: #3127c8;  
  position: relative;
  top: 22px; 
}

.terms-label span {
  line-height: 16px; 
}

.auth-card label{
  display:block;
  font-size:14px;
  margin-bottom:12px;
  color:#4b5563;
}

.auth-card input{
  width:100%;
  padding:14px 16px;
  margin-top:6px;
  border:1px solid #d1d5db;
  border-radius:14px;
  background:#f8fafc;
  font-size:15px;
  color:#111827;
}

.auth-card input:focus{
  outline:none;
  border-color:#6366f1;
  box-shadow:0 0 0 4px rgba(99, 102, 241, 0.12);
}

.register-btn{
  width:100%;
  margin-top:20px;
  padding:14px;
  border:none;
  border-radius:14px;
  background:#3127c8;
  color:white;
  font-size:16px;
  cursor:pointer;
}
#registerBtn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  cursor: not-allowed;
  background: #9ca3af;
  color: white;
  transition: all 0.3s ease;
}
#registerBtn.active {
  background: #3127c8; 
  cursor: pointer;
}

.auth-note a,
.auth-link a{
  color:#3127c8;
  text-decoration:none;
  text-align:left;
}

.forgot-password{
  display:block;
  text-align:right;    
  margin-top:8px;
  margin-bottom:10px;
  font-size:14px;
  color:#3127c8;
  text-decoration:none;
}
.forgot-password:hover{
  text-decoration:underline;
}

@media(max-width:480px){
  .auth-card{
    padding:28px;
  }
}

