/**
 * Admin Login Page Styles
 * Extracted from frontend/assets/css/pages.css
 */

/* ============================================================================
   CSS VARIABLES
   ============================================================================ */

:root {
  --primary-color: #667eea;
  --secondary-color: #764ba2;
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --primary-dark: #5568d3;
  --accent-blue: #3b82f6;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --text-primary: #333;
  --text-secondary: #666;
  --text-light: #aaa;
  --text-white: #fff;
  --bg-light: #f9fafb;
  --bg-lighter: #f5f5f5;
  --border-light: #eee;
  --border-gray: #e5e7eb;
  --font-stack: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

/* ============================================================================
   GLOBAL STYLES
   ============================================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-stack);
  line-height: 1.6;
  color: var(--text-primary);
  min-height: 100vh;
}

a {
  text-decoration: none;
  color: inherit;
  transition: color 0.3s ease;
}

button {
  font-family: inherit;
  border: none;
}

/* ============================================================================
   BUTTON STYLES
   ============================================================================ */

.btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.login-card .btn {
  width: 100%;
}

.btn-primary {
  background: var(--primary-gradient);
  color: var(--text-white);
  padding: 1rem 2rem;
  font-size: 20px;
  margin-bottom: 1rem;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.4);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-secondary {
  background: #f0f0f0;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.btn-secondary:hover:not(:disabled) {
  background: #e0e0e0;
}

.btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================================================
   LOGIN PAGE STYLES
   ============================================================================ */

body.login-page {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.login-container {
  max-width: 420px;
  width: 100%;
}

.login-card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  padding: 2.5rem;
}

.login-card .btn {
  width: 100%;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header h1 {
  font-size: 1.875rem;
  color: #333;
  margin-bottom: 0.5rem;
}

.login-header p {
  color: #999;
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
  color: #ccc;
}

.form-group input[type="text"] {
  letter-spacing: 0.15em;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 500;
}

.step {
  display: none;
}

.step.active {
  display: block;
}

#otp-form {
  text-align: center;
}

.otp-email {
  color: #333;
  font-weight: 600;
}

.info-text {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.btn-link {
  background: none;
  border: none;
  color: var(--primary-color);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.btn-link:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.back-link {
  display: block;
  text-align: center;
  margin-top: 1.5rem;
}

.message {
  padding: 0.875rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  text-align: center;
  display: none;
  animation: slideIn 0.3s ease;
  position: relative;
  z-index: 10;
}

.message.show {
  display: block;
}

.message.error {
  background: #fee;
  color: #c00;
  border-left: 4px solid #c00;
}

.message.success {
  background: #efe;
  color: #060;
  border-left: 4px solid #060;
}

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

@media (max-width: 768px) {
  .login-card {
    padding: 1.5rem;
  }

  .login-header h1 {
    font-size: 1.5rem;
  }
}
