*{
    margin:0;
    padding:0;
}
h1{
    font-size: 50px;
}
h2{
    font-size:45px;
}
h3{
    font-size:25px;
}

a{
    text-decoration: none;
}
ul{
    list-style:none;
}
button{
    cursor: pointer;
}
:root{
    --primary-color:deepskyblue;
    --secondary-color: #0022ff;
    --background-color:white;
    --text-color:black;
    --text-worrning:red;
    --text-success: #23fd1b;
    --border-color: #c3c2c2;
    --button-text:black;
    --button-cancle: #fb1f1f;
    --button-active: #2ef42e;
    --card-shadow: #d0edfb;
    --card-background: #ffffff;
    --button-height-large:60px;
    --button-height-mediam:40px;
    --button-height-small:25px;

}
[data-theme="dark"] {
    --background-color:#1f1f1f;
    --text-color: white;
    --card-shadow: #d3d2d2;
    /* etc */
}


.login {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-family: "Segoe UI", sans-serif;
  flex-direction: column;
  background-color: transparent;
}

.brand {
  text-align: center;
  margin-bottom: 20px;
}
.brand img {
  width: 80px;
  height: 80px;
  border-radius: 50%;
}
.brand h1 {
  color: var(--primary-color);
  margin-top: 10px;
}

.login-card {
  
  background: var(--card-background);
  padding:3%;
  border-radius: 15px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 25px var(--card-shadow);
  animation: fadeIn 0.4s ease;
  
}

.login-card h2 {
  text-align: center;
  color: var(--text-color);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 14px;
  color: var(--text-color);
}
.form-group input {
  width: 92%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  font-size: 15px;
  transition: 0.3s ease;
}
.form-group input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 5px var(--primary-color);
}

.login-btn {
  width: 100%;
  height: var(--button-height-mediam);
  border: none;
  border-radius: 10px;
  background: var(--primary-color);
  color: var(--button-text);
  font-size: 16px;
  font-weight: bold;
  transition: 0.3s ease;
}
.login-btn:hover {
  background: var(--secondary-color);
  color: #fff;
}

.extra-links {
  text-align: center;
  margin-top: 1rem;
  font-size: 14px;
}
.extra-links a {
  color: var(--secondary-color);
  font-weight: 500;
}
.extra-links a:hover {
  text-decoration: underline;
}

.hidden {
  display: none;
}

/* OTP Input Design */
.otp-box {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.otp-input {
  width: 45px;
  height: 50px;
  font-size: 20px;
  text-align: center;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}
.otp-input:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 5px var(--primary-color);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,0.85);
  display: none;                /* hidden by default */
  justify-content: center;
  align-items: center;
  z-index: 99999;               /* very high so it's on top */
}
/* spinner */
.spinner {
  border: 5px solid #f3f3f3;
  border-top: 5px solid #3498db;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { 0%{transform:rotate(0)}100%{transform:rotate(360deg)} }

/* small inline spinner for buttons */
.btn-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-top: 2px solid rgba(255,255,255,0.7);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  vertical-align: middle;
  margin-left: 8px;
}