/* ========================================
   Modern Login & Register Page Styles (Green Theme)
   ======================================== */

/* Page Container */
.customer.login,
.customer.register {
  max-width: 500px;
  margin: 2rem auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 179, 0, 0.1);
}

/* Login/Register Headers */
.customer_heading {
  font-size: 2rem;
  font-weight: 700;
  color: #253439;
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 3px solid #00b300;
  position: relative;
}

.customer_heading::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #00b300, #009900);
  border-radius: 2px;
}

/* Form Wrapper */
.form_wrap {
  margin-top: 2rem;
}

/* Form Fields */
.field {
  position: relative;
  margin-bottom: 2rem;
}

.field input {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid #e9ecef;
  border-radius: 12px;
  font-size: 1rem;
  font-family: inherit;
  background: #ffffff;
  transition: all 0.3s ease;
  box-sizing: border-box;
  outline: none;
}

.field input:focus {
  border-color: #00b300;
  box-shadow: 0 0 0 3px rgba(0, 179, 0, 0.1);
  background: #fafafa;
}

.field input:hover {
  border-color: #ced4da;
}

.field input::placeholder {
  color: #6c757d;
  opacity: 1;
}

/* Floating Labels */
.field label {
  position: absolute;
  left: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  padding: 0 0.5rem;
  color: #6c757d;
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.field input:focus + label,
.field input:not(:placeholder-shown) + label {
  top: 0;
  font-size: 0.875rem;
  color: #00b300;
  font-weight: 600;
}

/* Form Buttons */
.formbtn_wrap {
  margin: 2rem 0;
}

.formbtn_wrap button {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #00b300 0%, #009900 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(0, 179, 0, 0.3);
}

/* Register-specific button adjustments */
.customer.register .formbtn_wrap button {
    width: 100%;
    padding: 0.875rem 1.5rem;
    font-size: 1.1rem;
    font-weight: 600;
}

.formbtn_wrap button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 179, 0, 0.4);
  background: linear-gradient(135deg, #009900 0%, #00b300 100%);
}

.formbtn_wrap button:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 179, 0, 0.3);
}

/* Links */
.customer.login a,
.customer.register a {
  display: inline-block;
  color: #00b300;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 2px solid transparent;
  transition: all 0.3s ease;
  margin: 0.5rem 0;
}

.customer.login a:hover,
.customer.register a:hover {
  color: #009900;
  border-bottom-color: #009900;
}

.customer.login a:focus,
.customer.register a:focus {
  outline: 2px solid #00b300;
  outline-offset: 2px;
  border-radius: 4px;
}

/* Register page link adjustments */
.customer.register .form_wrap > a {
    display: block;
    text-align: center;
    margin-top: 1.5rem;
    color: #6b7280;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.customer.register .form_wrap > a:hover {
    color: #00b300;
}

.customer.register .form_wrap > a i {
    margin-right: 0.5rem;
    opacity: 0.7;
}



/* Password Recovery Section */
.customer.login > div:first-child {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #e9ecef;
}

.customer.login > div:first-child p {
  color: #666;
  text-align: center;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* Login Section */
.customer.login > div:last-child {
  margin-top: 2rem;
}

/* Error Messages */
.error-message {
  background: #f8d7da;
  color: #721c24;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid #f5c6cb;
  text-align: center;
  font-weight: 500;
}

.success-message {
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  border: 1px solid #c3e6cb;
  text-align: center;
  font-weight: 500;
}

/* Logged In State */
.logged-in-state {
  text-align: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 16px;
  border: 2px solid #00b300;
  box-shadow: 0 8px 32px rgba(0, 179, 0, 0.1);
  max-width: 500px;
  margin: 2rem auto;
}

.logged-in-state h2 {
  color: #00b300;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.logged-in-state p {
  color: #495057;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.logged-in-state .user-info {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  margin-bottom: 2rem;
  border: 1px solid #e9ecef;
}

.logged-in-state .user-info strong {
  color: #253439;
  font-weight: 600;
}

.logged-in-state .button-group {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.logged-in-state button,
.logged-in-state a {
  padding: 0.875rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-width: 140px;
}

.logged-in-state .btn-logout {
  background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.logged-in-state .btn-logout:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

.logged-in-state .btn-home {
  background: linear-gradient(135deg, #00b300 0%, #009900 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 179, 0, 0.3);
}

.logged-in-state .btn-home:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 179, 0, 0.4);
}

/* Loading State */
.loading-state {
  display: none;
  text-align: center;
  padding: 2rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #00b300;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Registration Form Styles */
.fs-c-inputInformation {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 179, 0, 0.1);
}

.fs-c-inputInformation__message {
  text-align: center;
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 12px;
  border-left: 4px solid #00b300;
}

.fs-c-inputInformation__message p {
  color: #495057;
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

.fs-c-inputTable {
  width: 100%;
  margin-bottom: 2rem;
  border-collapse: collapse;
}

.fs-c-inputTable__headerCell {
  background: #f8f9fa;
  padding: 1rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid #e9ecef;
  font-weight: 600;
  color: #253439;
  width: 30%;
}

.fs-c-inputTable__dataCell {
  padding: 1rem;
  border-bottom: 1px solid #e9ecef;
  vertical-align: top;
}

.fs-c-inputTable__label {
  font-weight: 600;
  color: #253439;
  margin-bottom: 0.5rem;
  display: block;
}

.fs-c-requiredMark {
  color: #dc3545;
  font-weight: 700;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.fs-c-inputField input,
.fs-c-inputField select,
.fs-c-inputField textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e9ecef;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #ffffff;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.fs-c-inputField input:focus,
.fs-c-inputField select:focus,
.fs-c-inputField textarea:focus {
  outline: none;
  border-color: #00b300;
  box-shadow: 0 0 0 3px rgba(0, 179, 0, 0.1);
  background: #fafafa;
}

.fs-c-checkbox {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.fs-c-checkbox__checkbox {
  width: 20px;
  height: 20px;
  accent-color: #00b300;
}

.fs-c-checkbox__label {
  color: #495057;
  font-size: 0.95rem;
  line-height: 1.5;
  cursor: pointer;
}

.fs-c-button--confirmRegister {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.fs-c-button--confirmRegister:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
  background: linear-gradient(135deg, #20c997 0%, #28a745 100%);
}

.fs-c-buttonContainer {
  text-align: center;
  margin-top: 2rem;
}

/* Privacy Agreement Checkbox */
.privacy-agreement {
    margin: 1.5rem 0;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: relative;
    height: 20px;
    width: 20px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 0.75rem;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.checkbox-label:hover .checkmark {
    border-color: #00b300;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #00b300;
    border-color: #00b300;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark:after {
    content: '';
    position: absolute;
    display: block;
    left: 6px;
    top: 2px;
    width: 6px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label a {
    color: #00b300;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.checkbox-label a:hover {
    color: #009900;
    text-decoration: underline;
}

.privacy-agreement .checkbox-label {
    margin: 0;
    padding: 0.75rem 0;
}

/* Focus state for accessibility */
.checkbox-label input[type="checkbox"]:focus + .checkmark {
    outline: 2px solid #00b300;
    outline-offset: 2px;
}

/* Success and Already Logged States */
.success-state,
.already-logged-state {
    text-align: center;
    padding: 2rem;
    background: #f8fafc;
    border-radius: 8px;
    margin: 2rem 0;
}

.success-state h2,
.already-logged-state h2 {
    margin-bottom: 1rem;
    color: #1f2937;
}

/* Registration success message */
.customer.register .success-state {
    background: linear-gradient(135deg, #ecfdf5 0%, #f0fdf4 100%);
    border: 1px solid #10b981;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.customer.register .success-state h2 {
    color: #047857;
    margin-bottom: 1rem;
}

.customer.register .success-state p {
    color: #065f46;
    margin-bottom: 1.5rem;
}

/* Already logged state */
.customer.register .already-logged-state {
    background: linear-gradient(135deg, #fef3c7 0%, #fef7d4 100%);
    border: 1px solid #f59e0b;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
}

.customer.register .already-logged-state h2 {
    color: #92400e;
    margin-bottom: 1rem;
}

.customer.register .already-logged-state p {
    color: #78350f;
    margin-bottom: 1.5rem;
}

.user-info {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 1rem;
    margin: 1.5rem 0;
}

.user-info p {
    margin: 0;
    color: #374151;
}

.button-group {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
    min-width: 120px;
}

.btn-primary {
    background-color: #00b300;
    color: white;
}

.btn-primary:hover {
    background-color: #009900;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6b7280;
    color: white;
}

.btn-secondary:hover {
    background-color: #4b5563;
    transform: translateY(-2px);
}

@media (max-width: 640px) {
    .button-group {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .checkbox-label {
        font-size: 0.9rem;
    }
    
    .checkmark {
        height: 18px;
        width: 18px;
    }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .customer.login,
  .customer.register {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .customer_heading {
    font-size: 1.5rem;
  }
  
  .field input {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
  }
  
  .formbtn_wrap button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
  }
  
  .fs-c-inputInformation {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .fs-c-inputTable__headerCell,
  .fs-c-inputTable__dataCell {
    padding: 0.75rem;
  }
}

/* Register page field adjustments */
.customer.register .field {
    margin-bottom: 1.5rem;
}

.customer.register .field:last-of-type {
    margin-bottom: 2rem;
}

.customer.register .formbtn_wrap {
    margin-top: 2rem;
}

@media screen and (max-width: 480px) {
  .customer.login,
  .customer.register {
    margin: 0.5rem;
    padding: 1rem;
  }
  
  .customer_heading {
    font-size: 1.3rem;
  }
  
  .field input {
    padding: 0.75rem 0.875rem;
    font-size: 0.9rem;
  }
  
  .formbtn_wrap button {
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }
  
  .logged-in-state .button-group {
    flex-direction: column;
    align-items: center;
  }
  
  .logged-in-state button,
  .logged-in-state a {
    width: 100%;
    max-width: 250px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .field input {
    border-width: 3px;
  }
  
  .field input:focus {
    border-color: #000;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.3);
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .customer.login,
  .customer.register {
    background: #1a1a1a;
    color: #e0e0e0;
  }
  
  .customer_heading {
    color: #ffffff;
  }
  
  .field input {
    background: #2a2a2a;
    color: #e0e0e0;
    border-color: #404040;
  }
  
  .field input:focus {
    background: #333333;
    border-color: #00b300;
  }
  
  .field label {
    color: #b0b0b0;
    background: #1a1a1a;
  }
  
  .field input:focus + label,
  .field input:not(:placeholder-shown) + label {
    color: #00b300;
  }
}

/* Print styles */
@media print {
  .customer.login,
  .customer.register {
    box-shadow: none;
    border: 1px solid #ccc;
  }
  
  .formbtn_wrap button {
    display: none;
  }
}

/* Message styling for register page */
.customer.register .message {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.customer.register .message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.customer.register .message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}


