/* Minimalist Green Login Page Styling */

/* Reset & base */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

:root {
  --primary-green: #59b61d;
  --primary-green-dark: #4b9e16;
  --text-dark: #222;
  --text-muted: #555;
  --input-border: #e0e0e0;
  --bg-color: #d1dacb; /* the outer background from the frame */
}

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 20px;
  background-color: var(--bg-color);
  color: var(--text-dark);
  overflow-x: hidden;
}

.login-page-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Main container */
.login-container {
  background: white;
  border-radius: 40px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 420px;
  padding-bottom: 50px;
  animation: slideUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.banner-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
}

.banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  object-position: center;
  border-top-left-radius: 40px;
  border-top-right-radius: 40px;
}

/* Header section */
.header-section {
  text-align: center;
  padding: 30px 40px 10px;
}

.brand-logo {
  font-family: 'Poppins', sans-serif;
  color: var(--primary-green);
  font-size: 2.4rem;
  margin: 0 0 40px;
  letter-spacing: -1px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.brand-logo i {
  font-size: 2rem;
  transform: translateY(-2px);
}

.page-title {
  color: var(--text-dark);
  font-size: 1.5rem;
  margin: 0;
  font-weight: 700;
  text-align: left;
}

/* Form section */
.form-section {
  padding: 0 40px;
}

form {
  display: flex;
  flex-direction: column;
  gap: 25px;
  margin-top: 25px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

/* Floating Input Styling */
.floating-input {
  position: relative;
  display: flex;
  flex-direction: column;
}

.floating-input input {
  width: 100%;
  padding: 8px 0;
  border: none;
  border-bottom: 2px solid var(--input-border);
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  background-color: transparent;
  color: var(--text-dark);
  transition: border-color 0.3s ease;
  outline: none;
  font-weight: 500;
}

.floating-input label {
  position: absolute;
  top: 8px;
  left: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  pointer-events: none;
  transition: all 0.3s ease;
  font-weight: 500;
}

.floating-input input:focus,
.floating-input input:not(:placeholder-shown) {
  border-bottom-color: var(--primary-green);
}

.floating-input input:focus + label,
.floating-input input:not(:placeholder-shown) + label {
  top: -20px;
  font-size: 0.8rem;
  color: var(--text-dark);
}

/* Submit Wrapper & Button */
.submit-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.submit-btn {
  background: linear-gradient(135deg, #6fe428 0%, #4b9e16 100%);
  border: none;
  color: white;
  width: 100%;
  height: 50px;
  font-size: 1.05rem;
  border-radius: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 25px rgba(89, 182, 29, 0.35);
  position: relative;
  overflow: hidden;
}

.submit-btn i {
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.submit-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(89, 182, 29, 0.45);
}

.submit-btn:hover i {
  transform: translateX(5px);
}

.submit-btn:active {
  transform: translateY(-1px);
}

/* Footers */
.form-footer {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  margin-top: 10px;
}

.forgot-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: var(--text-dark);
}

.signup-link {
  color: var(--text-dark);
  font-weight: 800;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.signup-link:hover {
  color: var(--primary-green);
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 30px 0 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  width: 100%;
}

.divider::before,
.divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--input-border);
}

.divider::before {
  margin-right: 15px;
}

.divider::after {
  margin-left: 15px;
}

.extra-logins {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.google-btn {
  background: white;
  border: 1px solid var(--input-border);
  width: 100%;
  height: 50px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-dark);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.google-btn img {
  width: 22px;
  height: 22px;
}

.google-btn:hover {
  background: #fafafa;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  border-color: #d0d0d0;
}

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

/* Responsive */
@media (max-width: 480px) {
  .login-container {
    border-radius: 30px;
    padding-bottom: 40px;
  }
  
  .banner-image {
    height: 150px;
  }
  
  .header-section {
    padding: 24px 30px 10px;
  }
  
  .form-section {
    padding: 0 30px;
  }
  
  .brand-logo {
    font-size: 2.2rem;
    margin-bottom: 30px;
  }
  
/* Removed fixed mobile btn sizes to let width: 100% handle it */
  
  .form-row {
    grid-template-columns: 1fr;
    gap: 25px;
  }
}

@media (max-width: 360px) {
  body {
    padding: 20px 15px;
  }
  
  .login-container {
    border-radius: 24px;
  }
  
  .banner-image {
    height: 130px;
  }
  
  .header-section {
    padding: 20px 24px 10px;
  }
  
  .form-section {
    padding: 0 24px;
  }
  
  .brand-logo {
    font-size: 1.9rem;
    margin-bottom: 24px;
  }
  
  .page-title {
    font-size: 1.3rem;
  }
  
  .floating-input input {
    font-size: 16px; /* Prevent zoom */
    padding: 6px 0;
  }
}
