/* Official RDC Login Page Styles */
.official-login-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: linear-gradient(135deg, #0c2748 0%, #1a3a5c 50%, #0d1f3a 100%);
  position: relative;
  overflow: hidden;
  justify-content: center;
  align-items: center;
}

.official-login-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 30%, rgba(247, 214, 24, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 127, 255, 0.1) 0%, transparent 40%);
  pointer-events: none;
}

.official-login-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--rdc-blue) 0 33.34%, var(--rdc-yellow) 33.34% 66.67%, var(--rdc-red) 66.67% 100%);
  z-index: 10;
}

.official-header {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 2rem 3rem;
  position: relative;
  z-index: 5;
  text-align: center;
  flex-direction: column;
}

.official-logo {
  flex-shrink: 0;
}

.ministry-logo {
  width: 80px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.official-identity {
  flex: 1;
  color: #fff;
}

.official-ministry {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.55rem;
}

.official-department {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3.2vw, 1.85rem);
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.2;
  white-space: nowrap;
}

.official-login-box {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  position: relative;
  z-index: 5;
  width: 100%;
  max-width: 500px;
}

.official-title-section {
  text-align: center;
  margin-bottom: 2rem;
}

.official-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 600;
  color: #fff;
  margin: 0 0 2rem 0;
  letter-spacing: 0.02em;
}

.official-form {
  width: 100%;
  max-width: 400px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.official-form-group {
  margin-bottom: 1.75rem;
  position: relative;
}

.official-form-group:last-of-type {
  margin-bottom: 2rem;
}

.official-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #0c2748;
  margin-bottom: 0.75rem;
}

.official-form input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e0e5ec;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f8fafc;
  position: relative;
}

.official-form input.form-input {
  width: 100%;
  padding: 1rem 1.25rem;
  border: 2px solid #e0e5ec;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f8fafc;
  position: relative;
}

.official-form input:focus,
.official-form input.form-input:focus {
  outline: none;
  border-color: var(--rdc-blue);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 127, 255, 0.1), 0 4px 12px rgba(0, 127, 255, 0.15);
  transform: translateY(-2px);
}

.official-form input::placeholder,
.official-form input.form-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.official-error {
  color: var(--rdc-red);
  font-size: 0.85rem;
  margin-top: 0.5rem;
  font-weight: 500;
}

.official-alert {
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  border-left: 4px solid;
}

.official-alert-error {
  background: #fee;
  border-color: var(--rdc-red);
  color: #991b1b;
}

.official-button {
  width: 100%;
  padding: 1.1rem 1.5rem;
  background: linear-gradient(135deg, #0c2748 0%, #1a3a5c 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 15px rgba(0, 39, 72, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.official-button:hover {
  background: linear-gradient(135deg, #1a3a5c 0%, #2a4a7c 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 39, 72, 0.3);
}

.official-button:active {
  transform: translateY(0);
}

.button-icon {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.official-button:hover .button-icon {
  transform: translateX(3px);
}

.official-footer {
  margin-top: 1.5rem;
  text-align: center;
}

.official-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.3);
  padding-bottom: 2px;
}

.official-link:hover {
  color: #f7d618;
  border-color: #f7d618;
}

@media (min-width: 960px) {
  .official-login-container {
    flex-direction: column;
  }
  
  .official-header {
    flex-direction: column;
    padding: 2rem 1.5rem;
    max-width: min(720px, 96vw);
    text-align: center;
  }
  
  .official-logo {
    margin-bottom: 1.5rem;
  }
  
  .ministry-logo {
    width: 100px;
  }
  
  .official-department {
    font-size: 1.85rem;
  }
  
  .official-login-box {
    flex: 0 0 auto;
    padding: 2rem;
    max-width: 500px;
  }
  
  .official-form {
    max-width: 420px;
  }
}