@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

:root {
  --ccq-primary: #6078ff;
  --ccq-primary-light: #e6eaff;
  --ccq-dark: #2d2d39;
  --ccq-white: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, var(--ccq-primary-light), #f9fbff 60%);
  overflow: hidden;
}

.ring {
  position: absolute;
  width: 550px;
  height: 550px;
  border-radius: 50%;
  background: conic-gradient(from 90deg, var(--ccq-primary) 0deg, transparent 120deg);
  animation: rotate 20s linear infinite;
  filter: blur(120px) opacity(.35);
  z-index: -1;
}
@keyframes rotate {
  to { transform: rotate(360deg); }
}

.card-login {
  width: 100%;
  max-width: 460px;
  background: rgba(255,255,255,.35);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 1.25rem;
  box-shadow: 0 12px 24px rgba(0,0,0,.08);
  overflow: hidden;
  animation: slideIn .85s cubic-bezier(.6,.2,.2,1);
}
@keyframes slideIn {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.card-header {
  padding: 2.5rem 2.5rem 1.75rem;
  text-align: center;
}
.logo {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--ccq-primary);
  position: relative;
}
.logo::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 3px;
  background: var(--ccq-primary);
  transition: width .45s ease;
}
.logo:hover::after {
  width: 100%;
}

.subtitle {
  font-size: .98rem;
  color: var(--ccq-dark);
  opacity: .65;
}

.card-body {
  padding: 0 2.5rem 2rem;
}

.form-floating > .form-control {
  background: #e6eaff;
  border: none;
  border-radius: .75rem;
  color: var(--ccq-dark);
}
.form-control:focus {
  background: rgba(255,255,255,.8);
  box-shadow: 0 0 0 .2rem rgba(96,120,255,.25);
}
.form-floating > label {
  color: #6c757d;
}

.btn-ccq {
  background: var(--ccq-primary);
  border: none;
  color: var(--ccq-white);
  font-weight: 500;
  border-radius: .75rem;
  padding: .65rem 1rem;
  transition: all .25s ease;
}
.btn-ccq:hover,
.btn-ccq:focus {
  background: #4d66fc;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(96,120,255,.32);
}

.card-footer {
  background: rgba(255,255,255,.25);
  padding: 1rem 2.5rem 2rem;
  text-align: center;
  font-size: .9rem;
}
.link-ccq {
  color: var(--ccq-primary);
  font-weight: 500;
  text-decoration: none;
}
.link-ccq:hover {
  text-decoration: underline;
}
@media (max-width: 575.98px) {
    .ring {
      width: 300px;
      height: 300px;
      filter: blur(80px) opacity(.35);
    }
    .card-login {
      margin: 1rem;
      max-width: 360px;
    }
    .card-header {
      padding: 2rem 1.5rem 1.5rem;
    }
    .card-body {
      padding: 0 1.5rem 1.5rem;
    }
    .card-footer {
      padding: .75rem 1.5rem 1.5rem;
    }
    .logo {
      font-size: 2rem;
    }
    .subtitle {
      font-size: .9rem;
    }
  }
  
  /* Small devices (landscape phones, ≥576px and <768px) */
  @media (min-width: 576px) and (max-width: 767.98px) {
    .ring {
      width: 400px;
      height: 400px;
      filter: blur(100px) opacity(.35);
    }
    .card-login {
      max-width: 400px;
    }
  }