:root {
    --primary-color: #9a05f6;
    --secondary-color: #1d4ed8;
    --text-color: #1f2937;
    --error-color: #ef4444;
    --success-color: #10b981;
    --site-clr: rgba(255, 255, 255, 0);
    --bg: hsl(0, 0%, 99%);
    --bg-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.container {
    width: 100%;
    max-width: 420px;
    perspective: 1000px;
}

.box {
    background: var(--bg);
    padding: 2.5rem;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform-style: preserve-3d;
    transform: translateY(0);
    transition: all 0.3s ease;
}

.box:hover {
    transform: translateY(-5px) rotateX(2deg);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.head {
    text-align: center;
    margin-bottom: 2.5rem;
}

.logo {
    font-size: 4.5rem;
    color: var(--site-clr);
    margin-bottom: 1.5rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.head h2 {
    color: var(--site-clr);
    margin-bottom: 0.75rem;
    font-size: 1.75rem;
    font-weight: 700;
}

.head span {
    color: var(--site-clr);
    font-size: 0.95rem;
}

.inputs {
    margin-bottom: 1.75rem;
}

.inputs span {
    display: block;
    margin-bottom: 0.75rem;
    color: var(--site-clr);
    font-weight: 600;
    font-size: 0.95rem;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 0.75rem;
    border: 2px solid transparent;
    transition: all 0
.3s ease;
}

.input-group:focus-within {
    border-color: var(--site-clr);
    background: white;
}

.input-group i {
    color: #64748b;
    font-size: 1.1rem;
    margin: 0 0.75rem;
}

.input-group input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    padding: 0.5rem;
    font-size: 1rem;
    color: var(--text-color);
}

.toggle-password {
    cursor: pointer;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: var(--site-clr);
}

.link {
    text-align: center;
    margin: 1.5rem 0;
}

.link a {
    color: var(--site-clr);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.link a:hover {
    color: var(--secondary-color);
}

button {
    width: 100%;
    padding: 1.1rem;
    background: var(--site-clr);
    color: white;
    border: none;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

button:hover {
    background: var(--secondary-color);
    transform: translateY(-2px);
}

button::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: -100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: 0.5s;
}

button:hover::after {
    left: 100%;
}

b {
    color: var(--error-color);
    font-size: 0.85rem;
    display: block;
    margin-top: 0.5rem;
}

.error {
    animation: shake 0.2s ease-in-out 0s 2;
    border-color: var(--error-color);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-8px); }
    75% { transform: translateX(8px); }
}




.alertErr,
.alertSuc{
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(0, 0%, 10%, 0.4);
  transition: 0.25s;
}
.alertErr .adiv,
.alertSuc .adiv{
  padding: 26px;
  border-radius: 15px;
  background: #fff;
  width: 260px;
  box-shadow: border-box;
  word-break: break-word;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  animation: zoomInMsg 0.2s;
  transition: 0.25s;
}
@keyframes zoomInMsg{
  from{
    transform: scale(0.7);
    opacity: 0.1;
  }
  to{
    transform: scale(1);
    opacity: 1;
  }
}
.alertErr,
.alertSuc{
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  background: hsl(0, 0%, 10%, 0.4);
  transition: 0.25s;
}
.alertErr .adiv,
.alertSuc .adiv{
  padding: 0px;
  border-radius: 16px;
  background: #fff;
  width: 290px;
  box-shadow: border-box;
  word-break: break-word;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  animation: zoomInMsg 0.2s;
  transition: 0.25s;
  overflow: hidden;
}
@keyframes zoomInMsg{
  from{
    transform: scale(0.9);
    opacity: 0.1;
  }
  to{
    transform: scale(1);
    opacity: 1;
  }
}
.alertErr .adiv i,
.alertSuc .adiv i{
  font-size: 50px;
  margin-bottom: 5px;
  margin-top: 20px;
}
.alertErr .adiv span,
.alertSuc .adiv span{
  font-size: 13px;
  font-weight: 400;
  color: #222;
  margin-top: 10px;
  margin-bottom: 18px;
  text-align: center;
  padding: 0px;
  padding-left: 13px;
  padding-right: 13px;
}
.alertSuc .adiv i{
  color: rgba(0%, 50%, 0%);
}
.alertErr .adiv i{
  color: rgba(80%, 0%, 0%);
}
.alertErr .adiv .button,
.alertSuc .adiv .button{
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0;
  border-top: 1px solid hsl(0, 0%, 70%);
  padding-top: 0px;
}
.alertErr .adiv .button button,
.alertSuc .adiv .button button{
  padding: 10px;
  color: #fff;
  line-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
  border-radius: 0px;
  height: 45px;
  width: 50%;
  font-size: 12px;
  font-family: var(--mitr);
  background: #fff;
  color: #666;
  border: none;
}
.alertErr .adiv .button button:hover,
.alertSuc .adiv .button button:hover,
.alertErr .adiv .button button:active,
.alertSuc .adiv .button button:active{
  background: hsl(0, 0%, 90%);
}
.alertSuc .adiv .button #cancelBtn,
.alertErr .adiv .button #cancelBtn{
  border-right: 0.8px solid hsl(0, 0%, 70%);
}
.alertErr .adiv .button #okBtn,
.alertSuc .adiv .button #okBtn{
  border-left: 0.8px solid hsl(0, 0%, 70%);
}