/* ==========================================================================
   FORNO & BRASA - LOGIN UNIFICADO (DESIGN SYSTEM MODERNO)
   ========================================================================== */

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

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: #080b11;
  color: #f8fafc;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 87, 34, 0.15) 0%, rgba(255, 152, 0, 0.05) 40%, transparent 70%);
  z-index: 0;
  pointer-events: none;
}

.login-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
}

.login-card {
  background: rgba(13, 19, 31, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 87, 34, 0.15);
}

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

.logo-container {
  display: inline-block;
  position: relative;
  margin-bottom: 12px;
}

.login-logo {
  width: 76px;
  height: 76px;
  border-radius: 18px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(255, 87, 34, 0.4);
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffffff 30%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 4px;
}

.brand-subtitle {
  font-size: 0.84rem;
  color: #94a3b8;
  font-weight: 500;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.input-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
}

.hint-text {
  font-size: 0.72rem;
  color: #64748b;
}

.input-field-wrap input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #f8fafc;
  font-size: 0.92rem;
  font-family: inherit;
  transition: all 0.2s;
  outline: none;
}

.input-field-wrap input:focus {
  border-color: #ff5722;
  box-shadow: 0 0 0 3px rgba(255, 87, 34, 0.2);
  background: rgba(15, 23, 42, 1);
}

.btn-login-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #ff5722, #ff7043);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(255, 87, 34, 0.4);
  transition: all 0.2s;
  margin-top: 6px;
}

.btn-login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(255, 87, 34, 0.6);
}

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

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

.login-feedback {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
}

.login-feedback.error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.login-feedback.success {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0 16px 0;
  color: #64748b;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-divider::before,
.login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.login-divider span {
  padding: 0 12px;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.quick-role-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quick-role-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 87, 34, 0.4);
  transform: translateY(-1px);
}

.quick-role-btn .role-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #f1f5f9;
}

.quick-role-btn .role-target {
  font-size: 0.68rem;
  color: #94a3b8;
}

.login-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 0.72rem;
  color: #475569;
}
