/* ==========================================================================
   BevStock Login Stylesheet - Premium Dark Glassmorphism Design
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@500;600;700;800&display=swap');

:root {
  --bg-dark: #0a0f1d;
  --bg-card: rgba(23, 32, 54, 0.75);
  --bg-input: rgba(15, 23, 42, 0.85);
  --border-subtle: rgba(255, 255, 255, 0.1);
  --border-focus: #3b82f6;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.35);
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --rose: #ef4444;
  --rose-bg: rgba(239, 68, 68, 0.15);
  --radius-lg: 18px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --shadow-card: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

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

body.login-body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  padding: 20px;
}

/* Ambient glow blobs behind card */
.ambient-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(37, 99, 235, 0) 70%);
  top: 10%;
  left: 20%;
  animation: floatSlow 14s ease-in-out infinite alternate;
}

.glow-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.2) 0%, rgba(16, 185, 129, 0) 70%);
  bottom: 10%;
  right: 20%;
  animation: floatSlow 18s ease-in-out infinite alternate-reverse;
}

@keyframes floatSlow {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, 40px) scale(1.08); }
}

/* Container */
.login-container {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 10;
}

/* Card */
.login-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: 36px 32px 32px 32px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Header */
.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.brand-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(16, 185, 129, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: 0 10px 25px -5px var(--primary-glow);
  animation: pulseGlow 4s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
  0% { box-shadow: 0 10px 25px -5px var(--primary-glow); }
  100% { box-shadow: 0 10px 30px -2px var(--emerald-glow); }
}

.login-title {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 400;
}

/* Alerts */
.login-alert {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
  animation: slideInDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-alert.alert-danger {
  background: var(--rose-bg);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
}

.login-alert.alert-success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}

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

/* Form Groups */
.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 14px;
  font-size: 16px;
  color: #64748b;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-control {
  width: 100%;
  height: 46px;
  padding: 0 14px 0 42px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: #ffffff;
  font-size: 14.5px;
  font-family: inherit;
  transition: all 0.2s ease;
  outline: none;
}

.form-control:focus {
  border-color: var(--border-focus);
  background: rgba(15, 23, 42, 0.95);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.form-control::placeholder {
  color: #475569;
}

/* Toggle password button */
.btn-toggle-pwd {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 6px;
  font-size: 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.btn-toggle-pwd:hover {
  color: #cbd5e1;
}

/* Submit Button */
.btn-submit {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  border: none;
  border-radius: var(--radius-md);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 8px 20px -4px var(--primary-glow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-submit:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  box-shadow: 0 12px 24px -4px rgba(37, 99, 235, 0.5);
  transform: translateY(-1.5px);
}

.btn-submit:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px -2px var(--primary-glow);
}

/* Footer note */
.login-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.security-dot {
  width: 7px;
  height: 7px;
  background-color: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--emerald);
}

/* =========================================================
   Mobile Responsiveness for Login
   ========================================================= */
@media (max-width: 480px) {
  body.login-body {
    padding: 14px;
  }

  .login-card {
    padding: 28px 18px 22px 18px;
    border-radius: var(--radius-md);
  }

  .brand-icon {
    width: 52px;
    height: 52px;
    font-size: 26px;
    margin-bottom: 10px;
    border-radius: 14px;
  }

  .login-title {
    font-size: 22px;
  }

  .login-subtitle {
    font-size: 12.5px;
  }

  .form-control {
    height: 44px;
    font-size: 14px;
  }

  .btn-submit {
    height: 46px;
    font-size: 14.5px;
  }
}
