*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f0f2f5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-container {
  width: 100%;
  padding: 1rem;
}

.auth-card {
    background: ghostwhite;
    border-radius: 12px;
    padding: 2.5rem;
    max-width: 520px;
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.auth-logo {
    font-size: 1.6rem;
    font-weight: 700;
    color: rgba(33, 64, 157);
    margin-bottom: 1.5rem;
    text-align: center;
}

.g_id_signin{
  margin-top:10px
}
#google-btn {
  width: 100%;
  display: flex;
  justify-content: center;
}

h1 { font-size: 1.6rem; color: #111; margin-bottom: .35rem; }
.auth-sub { color: #666; font-size: .9rem; margin-bottom: 1.75rem; }

.alert {
  padding: .75rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: .9rem;
}
.alert-error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

.form-group { margin-bottom: 1.25rem; }

label {
  display: flex;
  justify-content: space-between;
  font-size: .875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: .5rem;
}

.forgot-link { color: rgba(33, 64, 157); text-decoration: none; font-weight: 400; }
.forgot-link:hover { text-decoration: underline; }

input[type="email"],
input[type="password"],
input[type="text"],
input[type="number"] {
  width: 100%;
  padding: .7rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: .95rem;
  transition: border-color .2s;
  outline: none;
}
input:focus { border-color: rgba(33, 64, 157); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }

.input-wrapper { position: relative; }
.input-wrapper input { padding-right: 3rem; }
.toggle-pw {
  position: absolute; right: .75rem; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1rem;
}

.btn-primary {
  width: 100%;
  padding: .8rem;
  background: rgba(33, 64, 157);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  margin-top: .5rem;
}
.btn-secondary {
  width: 100%;
  padding: .8rem;
  background: rgb(157, 33, 33);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
  margin-top: .5rem;
}
.btn-primary:hover { background: #4338ca; }
.btn-secondary:hover { background: #ca3838; }
.btn-primary:active { transform: scale(.99); }

.go-to-dashboard{
  display: flex;
    justify-content: center;
    margin-top: 20px;
    border: 1px solid #8080807a;
    border-radius: 20px;
    text-decoration: none;
}




 .loader-container{
          width: 100%;
          height: 100%;
          justify-content: center;
          display: none;
          align-items: center;
          margin: -10rem 0;
      }
      .loader-container p{
            color: rgb(0, 0, 0);
          }
      .loader {
                  transform: rotateZ(45deg);
                  perspective: 300px;
                  border-radius: 50%;
                  width: 100px;
                  height: 100px;
                  color: #000000;
              
            }
          
        .loader:before,
        .loader:after {
          content: '';
          display: block;
          position: absolute;
          top: 0;
          left: 0;
          width: inherit;
          height: inherit;
          border-radius: 50%;
          transform: rotateX(70deg);
          animation: 1s spin linear infinite;
        }
        .loader:after {
          color: rgba(33, 64, 157);
          transform: rotateY(70deg);
          animation-delay: .4s;
        }

      @keyframes rotate {
        0% {
          transform: translate(-50%, -50%) rotateZ(0deg);
        }
        100% {
          transform: translate(-50%, -50%) rotateZ(360deg);
        }
      }

      @keyframes rotateccw {
        0% {
          transform: translate(-50%, -50%) rotate(0deg);
        }
        100% {
          transform: translate(-50%, -50%) rotate(-360deg);
        }
      }

      @keyframes spin {
        0%,
        100% {
          box-shadow: .2em 0px 0 0px currentcolor;
        }
        12% {
          box-shadow: .2em .2em 0 0 currentcolor;
        }
        25% {
          box-shadow: 0 .2em 0 0px currentcolor;
        }
        37% {
          box-shadow: -.2em .2em 0 0 currentcolor;
        }
        50% {
          box-shadow: -.2em 0 0 0 currentcolor;
        }
        62% {
          box-shadow: -.2em -.2em 0 0 currentcolor;
        }
        75% {
          box-shadow: 0px -.2em 0 0 currentcolor;
        }
        87% {
          box-shadow: .2em -.2em 0 0 currentcolor;
        }
      }