:root {
  --primary-maroon: #800020;
  --accent-teal: #26c6da;
  --accent-yellow: #ffd000;
  --soft-red: #c41e3d;
}

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

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background-color: #ffffff;
  overflow: hidden;
}

.login-container {
  position: relative;
  width: 500px;
  height: 500px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- Ring System & Animations --- */
.ring-system {
  position: absolute;
  width: 100%;
  height: 100%;
  filter: blur(1px); /* Softens the hand-drawn lines */
}

.ring {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  margin: auto;
  border: 3px solid;
  transition: all 0.5s ease;
}

.ring-red {
  width: 98%; height: 98%;
  border-color: var(--soft-red);
  border-radius: 48% 52% 55% 45% / 40% 55% 45% 60%;
  animation: rotate-main 12s linear infinite;
}

.ring-yellow {
  width: 93%; height: 93%;
  border-color: var(--accent-yellow);
  border-radius: 55% 45% 50% 50% / 45% 45% 55% 55%;
  animation: rotate-reverse 18s linear infinite;
}

.ring-teal {
  width: 100%; height: 100%;
  border-color: var(--accent-teal);
  border-radius: 40% 60% 45% 55% / 55% 40% 60% 45%;
  animation: rotate-main 25s linear infinite;
}

@keyframes rotate-main {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes rotate-reverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}

/* --- Form Styling --- */
.login-box {
  position: relative;
  z-index: 10;
  width: 280px;
  text-align: center;
  animation: fadeIn 1s ease-out;
}

h2 {
  color: var(--primary-maroon);
  font-size: 45px;
  margin-bottom: 20px;
}

input {
  width: 100%;
  padding: 12px 25px;
  margin: 8px 0;
  border: 2px solid var(--primary-maroon);
  border-radius: 30px;
  outline: none;
  font-size: 18px;
  color: var(--primary-maroon);
  background: rgba(255, 255, 255, 0.8);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

input:focus {
  transform: scale(1.05);
  box-shadow: 0 5px 15px rgba(128, 0, 32, 0.1);
}

/* --- The Dual-Color Button --- */
.signin-btn {
  width: 100%;
  height: 48px;
  margin-top: 15px;
  border: 2px solid var(--primary-maroon);
  border-radius: 30px;
  cursor: pointer;
  background: linear-gradient(to right, var(--primary-maroon) 55%, var(--accent-teal) 45%);
  background-size: 200% 100%;
  background-position: left bottom;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: all 0.4s ease-in-out;
}

.signin-btn:hover {
  background-position: right bottom;
  letter-spacing: 1px;
}

.footer-links {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
}

.link {
cursor: pointer;
  text-decoration: none;
  font-size: 15px;
  color: var(--primary-maroon);
  opacity: 0.7;
  transition: opacity 0.3s;
}

.link:hover {
  opacity: 1;
  text-decoration: underline;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}