/* ==========================================================================
   KAKKUTAIDE STUDIO — HALLINTAPANEELI (UNDER CONSTRUCTION)
   Aesthetic: Warm cream, delicate caramel gold, Nordic minimalism, glassmorphism
   Matches index.html design language & color palette
   ========================================================================== */

/* Main Container for Under Construction / Admin Login */
.admin-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: start;
  padding: 3rem 0;
  flex: 1;
}

/* Back Link in Header */
.back-home-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-gold);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(8px);
  transition: var(--transition);
}

.back-home-link:hover {
  background: #FFFFFF;
  color: var(--accent-gold-hover);
  transform: translateX(-3px);
  box-shadow: var(--shadow-sm);
}

/* Card Structure */
.admin-login-card {
  background: var(--surface-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.admin-login-card:hover {
  box-shadow: var(--shadow-lg);
}

/* Card Header */
.card-header-badge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.auth-icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(188, 122, 67, 0.12);
  color: var(--accent-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  border: 1px solid rgba(188, 122, 67, 0.2);
}

.security-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.9);
  padding: 0.25rem 0.7rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.security-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #27AE60;
}

.login-heading {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.login-subheading {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.75rem;
}

/* Form Groups */
.form-group {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.form-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: #FFFFFF;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  transition: var(--transition);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

.form-input-wrapper:focus-within {
  border-color: var(--accent-gold);
  box-shadow: 0 0 0 3px var(--accent-gold-glow);
}

.input-icon {
  position: absolute;
  left: 0.9rem;
  color: var(--text-light);
  pointer-events: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
}

.form-input-wrapper input {
  width: 100%;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--text-main);
  background: transparent;
}

.form-input-wrapper input::placeholder {
  color: var(--text-light);
  opacity: 0.75;
}

/* Password Toggle Button */
.password-toggle-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-light);
  padding: 0.2rem;
  display: flex;
  align-items: center;
  transition: color 0.2s ease;
}

.password-toggle-btn:hover {
  color: var(--text-main);
}

/* Error state on input */
.form-input-wrapper.input-error {
  border-color: #C82333 !important;
  background-color: #FFF9F9;
  box-shadow: 0 0 0 3px rgba(200, 35, 51, 0.15) !important;
}

/* Options Row (Remember Me & Forgot Password) */
.form-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 1.5rem;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--text-muted);
  cursor: pointer;
  user-select: none;
}

.remember-checkbox {
  accent-color: var(--accent-gold);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.forgot-link {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s ease;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  padding: 0;
}

.forgot-link:hover {
  color: var(--accent-gold-hover);
  text-decoration: underline;
}

/* Submit Button */
.btn-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  background: var(--accent-gold);
  color: #FFFFFF;
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 14px var(--accent-gold-glow);
}

.btn-login:hover:not(:disabled) {
  background: var(--accent-gold-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(188, 122, 67, 0.35);
}

.btn-login:active:not(:disabled) {
  transform: translateY(0);
}

.btn-login:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  transform: none;
}

/* Loading Spinner */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Error feedback alert box */
.login-feedback {
  margin-top: 1.25rem;
  display: none;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
  line-height: 1.45;
  animation: slideDownFade 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.login-feedback.visible {
  display: block;
}

.login-feedback.error {
  background: #FFF2F2;
  border: 1px solid rgba(200, 35, 51, 0.3);
  color: #8E283A;
}

.feedback-content {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.feedback-icon {
  font-size: 1.15rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.feedback-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.feedback-text strong {
  font-weight: 700;
  color: #721C24;
  font-size: 0.88rem;
}

.feedback-text span {
  color: #8E283A;
  font-size: 0.8rem;
}

@keyframes slideDownFade {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Card Shake Animation */
@keyframes shakeAnimation {
  0%, 100% { transform: translateX(0); }
  15%, 45%, 75% { transform: translateX(-8px); }
  30%, 60%, 90% { transform: translateX(8px); }
}

.shake {
  animation: shakeAnimation 0.5s ease-in-out;
}

/* Right Side: Under Construction & Roadmap Column */
.underconstr-info-col {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.status-hero-card {
  background: var(--surface-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-md);
}

.underconstr-title {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.25;
  margin: 1rem 0 0.5rem;
}

.underconstr-desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

/* Progress Section */
.progress-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.progress-label {
  color: var(--text-main);
}

.progress-percent {
  color: var(--accent-gold);
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
}

.progress-bar-bg {
  width: 100%;
  height: 8px;
  background: rgba(188, 122, 67, 0.15);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 68%;
  background: linear-gradient(90deg, var(--accent-gold), #D49B68);
  border-radius: var(--radius-full);
  animation: progressFill 1.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes progressFill {
  from { width: 0%; }
  to { width: 68%; }
}

/* Roadmap List */
.roadmap-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.roadmap-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: var(--radius-md);
  border: 1px solid rgba(185, 155, 130, 0.15);
  transition: var(--transition);
}

.roadmap-item:hover {
  background: #FFFFFF;
  transform: translateX(3px);
  border-color: rgba(185, 155, 130, 0.35);
}

.roadmap-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.roadmap-details {
  flex: 1;
}

.roadmap-details strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-main);
}

.roadmap-details p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-top: 0.15rem;
}

.status-tag {
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.status-tag.active {
  background: rgba(188, 122, 67, 0.15);
  color: var(--accent-gold);
}

.status-tag.review {
  background: rgba(52, 152, 219, 0.12);
  color: #2980B9;
}

.status-tag.done {
  background: rgba(39, 174, 96, 0.12);
  color: #27AE60;
}

/* Security Notice Box */
.security-notice-box {
  background: rgba(255, 255, 255, 0.65);
  border-left: 3px solid var(--accent-gold);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.85rem 1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.security-notice-box a {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 600;
}

.security-notice-box a:hover {
  text-decoration: underline;
}

/* Simple Modal Alert for Password Recovery */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(36, 27, 22, 0.45);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 2rem;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
  transform: scale(0.95);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-card {
  transform: scale(1);
}

.modal-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.modal-text {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.modal-btn {
  background: var(--accent-gold);
  color: #FFFFFF;
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.modal-btn:hover {
  background: var(--accent-gold-hover);
}

/* Responsive */
@media (max-width: 960px) {
  .admin-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 600px) {
  .admin-login-card {
    padding: 1.5rem;
  }
  
  .status-hero-card {
    padding: 1.5rem;
  }

  .login-heading {
    font-size: 1.65rem;
  }
}
