/* Login Page Specific Styles */

:root {
  --login-bg: #eceff1;
  --login-card-bg: #ffffff;
  --input-border: #dce0e4;
  --input-focus: #742384; /* Yape Purple */
  --btn-primary: #10cbb4; /* Yape Mint */
  --btn-primary-hover: #0ea895;
  --text-muted: #6b7780;
  --shadow-warm: 0 15px 35px rgba(0,0,0,0.1), 0 5px 15px rgba(0,0,0,0.05);
}

body.login-page {
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin: 0;
  font-family: 'Outfit', sans-serif;
}

/* Remove default main margins for login only if feasible via template, 
   otherwise we assume .layout-centered classes handle it. 
   We will treat .login-container as the primary wrapper. */

.login-wrapper {
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100vh - 80px); /* Adjust for header if visible */
}

.login-card {
  background: var(--login-card-bg);
  width: 100%;
  max-width: 420px;
  padding: 40px;
  border-radius: 20px;
  box-shadow: var(--shadow-warm);
  text-align: center;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  0% { transform: translateY(40px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

.login-header {
  margin-bottom: 30px;
}

.logo-circle {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.logo-circle img {
  max-width: 100%;
  height: auto;
  border-radius: 50%;
}

.login-header h2 {
  font-weight: 700;
  color: #333;
  margin: 0 0 5px;
  font-size: 1.6rem;
}

.login-header p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

/* Form Styles */
.login-form .form-group {
  margin-bottom: 20px;
  text-align: left;
}

.login-form label {
  display: block;
  font-weight: 500;
  margin-bottom: 8px;
  color: #4a5568;
  font-size: 0.9rem;
}

.input-group {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #a0aec0;
  width: 20px;
  height: 20px;
  transition: color 0.3s;
}

.login-form input {
  width: 100%;
  padding: 14px 14px 14px 44px; /* Space for icon */
  border: 1px solid var(--input-border);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s;
  background: #f8fafc;
  color: #333;
  box-sizing: border-box;
}

.login-form input:focus {
  outline: none;
  border-color: var(--input-focus);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(116, 35, 132, 0.1); /* Yape purple faint */
}

.login-form input:focus + .input-icon,
.login-form input:not(:placeholder-shown) + .input-icon {
  color: var(--input-focus);
}

.btn-login {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: var(--btn-primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 10px;
  letter-spacing: 0.5px;
}

.btn-login:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 203, 180, 0.3);
}

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

.login-footer {
  margin-top: 25px;
  font-size: 0.85rem;
  color: #718096;
  border-top: 1px solid #edf2f7;
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #27ae60;
  font-weight: 600;
  background: #e8f5e9;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
}

/* Error Message */
.error-msg {
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: #dc2626;
  padding: 12px;
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
