/**
 * Golcam - Authentication Styles
 * Modern, responsive styles for login, registration and password recovery
 */

/* Modal Structure */
.gc-modal-dialog {
  max-width: 400px;
  margin: 1.75rem auto;
  position: relative;
  width: auto;
  pointer-events: none;
}

.gc-login-modal-content {
  border-radius: 16px;
  overflow: hidden;
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  pointer-events: auto;
  background-color: #fff;
  background-clip: padding-box;
  outline: 0;
}

/* Modal Positioning */
    display: block;

.modal.show {
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
}

.modal-dialog-centered {
  display: flex;
  align-items: center;
  min-height: calc(100% - (1.75rem * 2));
}

/* Responsive Modal Styles */
@media (max-width: 480px) {
  .modal {
    padding: 10px;
  }

  .modal-dialog {
    width: 98%;
    margin: 0 auto;
    max-width: 95%;
        transition: transform 0.3s ease-out;
    transform: translate(0, 10px);
  }

  .modal-content {
    border-radius: 12px;
    margin: 0 auto;
  }

  .modal-dialog-centered {
    min-height: calc(100% - (10px * 2));
  }
}

/* Modal Animation */



/* Modal Backdrop */
.modal-backdrop {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1040;
  background-color: #000;
}

.modal-backdrop.fade {
  opacity: 0;
}

.modal-backdrop.show {
  opacity: 0.5;
}

.gc-modal-header {
  background: linear-gradient(135deg, #2d8f5a, #1c6b42);
  border-bottom: none;
  padding: 7px 15px;
  text-align: center;
  position: relative;
  color: #FFF;
  display: block;
}

.gc-login-logo {
  display: flex;
  justify-content: center;
  align-items: center;
}

.gc-auth-logo {
  max-height: 50px;
  margin: 0 auto;
}

.gc-login-modal-body {
  padding: 30px 25px;
}

.gc-auth-container {
  width: 100%;
}

/* Header and Layout */
.gc-auth-header {
  text-align: center;
  margin-bottom: 20px;
}

.modal-header .close {
  font-size: 35px;
  color: #FFF;
  opacity: 1;
}
.gc-auth-header h4 {
  font-size: 22px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.gc-auth-subtitle {
  color: #666;
  font-size: 14px;
  margin-bottom: 0;
}

.gc-or-divider {
  position: relative;
  text-align: center;
  margin: 20px 0;
}

.gc-or-divider:before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 1px;
  background: #e0e0e0;
}

.gc-or-divider span {
  background: #fff;
  padding: 0 15px;
  position: relative;
  color: #666;
  font-size: 14px;
}

/* Social Buttons */
.gc-social-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gc-btn-social {
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 7px 16px;
      border-radius: 3px;
      text-decoration: none;
      font-weight: 600;
      font-size: 14px;
      transition: all 0.2s ease;
}

.gc-btn-social i {
  margin-right: 10px;
  font-size: 18px;
}

.gc-btn-facebook {
  background-color: #3b5998;
  color: white !important;
  border: 1px solid #3b5998;
}

.gc-btn-facebook:hover {
  background-color: #2d4373;
  color: white !important;
  text-decoration: none;
}

.gc-btn-google {
  background-color: white;
  color: #444 !important;
  border: 1px solid #ddd;
}

.gc-btn-google:hover {
  background-color: #f5f5f5;
  color: #444 !important;
  text-decoration: none;
}

/* Form Elements */
.gc-auth-form {
  margin-top: 20px;
}

.gc-auth-form-container {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.gc-form-group {
  position: relative;
  margin-bottom: 5px;
}

.gc-input-icon {
  position: relative;
}

.gc-input-icon i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
}

.gc-form-input {
  width: 100%;
  padding: 12px 12px 12px 45px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.gc-form-input:focus {
  border-color: #2d8f5a;
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 143, 90, 0.1);
}

.gc-form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 5px;
  margin-bottom: 5px;
}

.gc-remember-me {
  display: flex;
  align-items: center;
}

.gc-remember-me input[type="checkbox"] {
  margin-right: 8px;
}

.gc-forgot-password {
  color: #2d8f5a;
  font-size: 14px;
  text-decoration: none;
}

.gc-forgot-password:hover {
  text-decoration: underline;
}

/* Buttons */
.gc-btn {
  display: block;
  width: 100%;
  padding: 12px 20px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
}

.gc-btn-primary {
  background: linear-gradient(135deg, #2d8f5a, #1c6b42);
  color: white;
}

.gc-btn-primary:hover {
  background: linear-gradient(135deg, #1c6b42, #155335);
  box-shadow: 0 4px 12px rgba(28, 107, 66, 0.2);
}

/* Footer and Helper Elements */
.gc-auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: #666;
}

.gc-signup-link {
  color: #2d8f5a;
  font-weight: 600;
  text-decoration: none;
}

.gc-signup-link:hover {
  text-decoration: underline;
}

/* Terms and Conditions */
.gc-terms-container {
  margin: 15px 0;
}

.gc-terms-label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  color: #333;
}

.gc-terms-box {
  max-height: 84px;
  overflow-y: auto;
  border: 1px solid #ddd;
  padding: 10px;
  border-radius: 8px;
  background-color: #f9f9f9;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.4;
  color: grey;
}

.gc-terms-box p {
  margin-bottom: 8px;
}

.gc-checkbox-container {
  display: flex;
  align-items: flex-start;
  margin-top: 8px;
}

.gc-checkbox-container input[type="checkbox"] {
  margin-top: 2px;
  margin-right: 8px;
}

.gc-checkbox-container label {
  font-size: 14px;
  line-height: 1.4;
  color: #333;
}

/* Animation effects */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.gc-modal-dialog {
  animation: fadeIn 0.3s ease-out;
}

/* Highlight effect for form fields */
.gc-form-input:focus + .highlight {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  border-radius: 8px;
}

/* Social button hover effects */
.gc-btn-social:hover {
  transform: translateY(-2px);
}