/* config/includes/css/login.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', 'Inter', system-ui, sans-serif;
}

body {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: #f9fbfa;
}

.login-container {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

.left-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  background: #ffffff;
  order: 1;
}

.form-card {
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
}

.avatar {
  width: 88px;
  height: 88px;
  background: #e9f7ef;
  border-radius: 50%;
  margin: 0 auto 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #28c78c30;
  box-shadow: 0 8px 14px -6px rgba(40,199,140,0.2);
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
}

h1 {
  font-size: 2.2rem;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: #1e2b24;
  margin-bottom: 0.5rem;
  text-align: center;
}

.subtitle {
  text-align: center;
  color: #6d8a7d;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

.input-group {
  width: 100%;
  margin-bottom: 1.5rem;
  position: relative;
}

.input-group input {
  width: 100%;
  padding: 0.9rem 0 0.7rem 0;
  border: none;
  border-bottom: 2px solid #d0dfd7;
  outline: none;
  font-size: 1rem;
  background: transparent;
  transition: border-color 0.2s;
  color: #1a2e26;
  font-weight: 500;
}

.input-group input:focus {
  border-bottom-color: #28c78c;
}

.input-group input::placeholder {
  color: #9aada3;
  font-weight: 400;
}

.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  padding-right: 48px;
}

.toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6d8a7d;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 8px 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s;
  border-radius: 30px;
}

.toggle-password:hover {
  color: #28c78c;
  background: #e4f3eb;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0.5rem 0 1.8rem;
  font-size: 0.9rem;
}

.remember-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  color: #2e4a3d;
}

.remember-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #28c78c;
  margin: 0;
  cursor: pointer;
}

.forgot-link {
  color: #28c78c;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.15s;
}

.forgot-link:hover {
  color: #1f9e6e;
  text-decoration: underline;
}

.login-btn {
  width: 100%;
  padding: 0.95rem;
  background: #28c78c;
  color: white;
  border: none;
  border-radius: 60px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 10px 18px -8px rgba(40,199,140,0.4);
}

.login-btn:hover {
  background: #21a875;
  transform: scale(1.01);
}

.login-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.error-message {
  background: #fee;
  color: #c33;
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  border-left: 4px solid #c33;
}

.attempt-info {
  background: #fff3cd;
  color: #856404;
  padding: 8px 12px;
  border-radius: 8px;
  margin-bottom: 15px;
  font-size: 0.85rem;
  text-align: center;
}

.right-panel {
  flex: 1.1;
  background: #28c78c;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: ellipse(130% 100% at 100% 50%);
  order: 2;
  overflow: hidden;
}

.fashion-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 1;
}

.right-panel::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, rgba(40,199,140,0.35) 0%, rgba(20,120,80,0.25) 100%);
  z-index: 2;
  pointer-events: none;
}

.logo-bottom {
  position: absolute;
  bottom: 32px;
  right: 36px;
  z-index: 10;
}

.logo-bottom img {
  height: 42px;
  width: auto;
  
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .login-container {
    flex-direction: column;
  }

  .left-panel {
    order: 1;
    padding: 2rem 1.5rem 2.5rem;
  }

  .right-panel {
    order: 2;
    clip-path: none;
    border-radius: 40px 40px 0 0;
    min-height: 45vh;
  }

  .fashion-img {
    border-radius: 40px 40px 0 0;
  }

  .right-panel::after {
    border-radius: 40px 40px 0 0;
  }

  h1 {
    font-size: 1.9rem;
  }
}

/* Loading animation */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.fa-spinner {
  animation: spin 1s linear infinite;
}

/* Focus visible for accessibility */
input:focus-visible,
button:focus-visible {
  outline: 2px solid #28c78c;
  outline-offset: 2px;
}

/* Smooth transitions */
* {
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}