/* ==================== LOGIN.CFM ==================== */

.login-main {
  min-height: calc(100vh - var(--header-height) - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.login-card {
  background: white;
  border-radius: 12px;
  padding: 48px 40px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==================== LOGO ==================== */
.login-logo {
  text-align: center;
  margin-bottom: 8px;
}

.login-logo__img {
  height: 56px;
  width: auto;
}

/* ==================== SUBTITLE ==================== */
.login-subtitle {
  font-size: 14px;
  color: var(--text-light);
  text-align: center;
  margin-top: -8px;
}

.login-subtitle strong {
  color: var(--text-dark);
}

/* ==================== ALERTS ==================== */
.login-alert {
  font-size: 14px;
  padding: 12px 16px;
  border-radius: 8px;
  line-height: 1.4;
}

.login-alert--error {
  background: #fff0f0;
  color: #c62828;
  border: 1px solid #ffcdd2;
}

.login-alert--warning {
  background: #fff8e1;
  color: #f57f17;
  border: 1px solid #ffecb3;
}

.login-alert--success {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #c8e6c9;
}

/* ==================== FIELDS ==================== */
.login-field {
  position: relative;
}

.login-field__input {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--border-color);
  border-radius: 8px;
  font-size: 15px;
  color: var(--text-dark);
  background: white;
  transition: border-color var(--transition-speed) ease;
  outline: none;
  box-sizing: border-box;
}

.login-field__input:focus {
  border-color: var(--accent-color);
}

.login-field__input::placeholder {
  color: var(--text-light);
}

.login-field--password .login-field__input {
  padding-right: 48px;
}

.login-field__toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  padding: 4px;
  opacity: 0.5;
  transition: opacity var(--transition-speed) ease;
  line-height: 1;
}

.login-field__toggle:hover {
  opacity: 1;
}

/* ==================== BUTTON ==================== */
.login-btn {
  width: 100%;
  padding: 14px;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  margin-top: 4px;
}

.login-btn:hover:not(:disabled) {
  background: var(--primary-light);
  transform: translateY(-1px);
}

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

/* ==================== RESPONSIVE ==================== */
@media (max-width: 480px) {
  .login-card {
    padding: 32px 24px;
  }
}
