/* =========================
   Login Page Styles
========================= */

:root {
  --primary-color: #0f172a;
  --secondary-color: #1e293b;
  --accent-color: #06b6d4;
  --accent-light: #22d3ee;
  --success-color: #10b981;
  --danger-color: #ef4444;
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  width: 100%;
  height: 100%;
}

body.bg {
  background: linear-gradient(135deg, #0f172a 0%, #1a2332 50%, #192232 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

body.bg::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

body.bg::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.box {
  max-width: 450px;
  width: 100%;
  padding: 45px 40px;
  background: var(--secondary-color);
  backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  text-align: center;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(6, 182, 212, 0.2);

  h1 {
    color: var(--accent-light);
    margin-bottom: 15px;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
  }

  p {
    color: #cbd5e1;
    margin-bottom: 30px;
    font-size: 14px;
  }
}

form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.inp {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(6, 182, 212, 0.3);
  border-radius: 12px;
  font-size: 14px;
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.5);
  transition: var(--transition);
  font-family: inherit;

  &::placeholder {
    color: #94a3b8;
  }

  &:focus {
    outline: none;
    border-color: var(--accent-color);
    background: rgba(6, 182, 212, 0.05);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
  }

  &:hover {
    border-color: rgba(6, 182, 212, 0.5);
    background: rgba(6, 182, 212, 0.02);
  }
}

.btn {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, var(--accent-color), var(--accent-light));
  color: var(--primary-color);
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 10px;
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.3);

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(6, 182, 212, 0.4);
  }

  &:active {
    transform: translateY(0);
  }
}

hr {
  border: none;
  height: 1px;
  background: rgba(6, 182, 212, 0.2);
  margin: 15px 0;
}

.error {
  background: rgba(239, 68, 68, 0.1);
  color: #fca5a5;
  padding: 12px 16px;
  border-radius: 10px;
  margin-top: 15px;
  font-size: 13px;
  border-left: 4px solid var(--danger-color);
  animation: slideIn 0.3s ease;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 480px) {
  .box {
    margin: 20px;
    padding: 30px 20px;

    h1 {
      font-size: 26px;
    }
  }

  .inp {
    font-size: 16px;
  }
}
