#zmauth-overlay, #zmauth-overlay * {
  box-sizing: border-box;
  font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

/* Dark transparent background */

.zmauth-overlay-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
}

/* Main Container */

.zmauth-modal-container {
  background: #fff;
  width: 90%;
  max-width: 900px;
  border-radius: 16px;
  display: flex;
  overflow: hidden;
  position: relative;
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  min-height: 550px;
}

/* Close Button */

.zmauth-close-icon {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: #666;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 10;
  line-height: 1;
}

.zmauth-close-icon:hover {
  color: #000;
}

/* Left Panel (Orange Branding) */

.zmauth-panel-left {
  background: linear-gradient(135deg, #f57e3a, #e9511a);
  width: 45%;
  padding: 40px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.zmauth-brand-content h2 {
  font-size: 24px;
  margin: 20px 0 15px;
  font-weight: 700;
}

.zmauth-brand-content p {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
  margin: 0;
}

/* Right Panel (Forms) */

.zmauth-panel-right {
  width: 55%;
  padding: 50px 60px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Headings */

.zmauth-header {
  text-align: center;
  margin-bottom: 30px;
}

.zmauth-header h2 {
  color: #4a3e3d;
  font-size: 24px;
  margin: 0 0 8px;
  font-weight: 700;
}

.zmauth-header p {
  color: #888;
  font-size: 14px;
  margin: 0;
}

/* Inputs */

.zmauth-input-group {
  margin-bottom: 20px;
  text-align: left;
}

.zmauth-input-group label {
  display: block;
  font-size: 12px;
  color: #555;
  font-weight: 600;
  margin-bottom: 6px;
}

.zmauth-input-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e1e5eb;
  border-radius: 8px;
  font-size: 14px;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
}

.zmauth-input-group input:focus {
  border-color: #e9511a;
}

.zmauth-input-group input::placeholder {
  color: #bbb;
}

.zmauth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.zmauth-forgot-link {
  font-size: 12px;
  color: #e9511a;
  text-decoration: none;
  font-weight: 600;
}

/* Error Text for Validation */

.zmauth-error-text {
  display: none;
  color: #d93025;
  font-size: 12px;
  margin-top: 5px;
}

/* Buttons */

.zmauth-btn-primary {
  width: 100%;
  background: #ea580c;
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  margin-top: 5px;
  transition: background 0.2s;
}

.zmauth-btn-primary:hover {
  background: #c24102;
}

/* Divider */

.zmauth-divider {
  text-align: center;
  margin: 25px 0;
  position: relative;
}

.zmauth-divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e1e5eb;
  z-index: 1;
}

.zmauth-divider span {
  background: #fff;
  padding: 0 15px;
  color: #888;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 2;
}

/* Social Buttons */

.zmauth-social-row {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.zmauth-btn-outline {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #e1e5eb;
  padding: 12px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: background 0.2s;
}

.zmauth-btn-outline:hover {
  background: #f8f9fa;
}

/* Footer Link */

.zmauth-footer {
  text-align: center;
  font-size: 13px;
  color: #666;
}

.zmauth-footer a {
  color: #e9511a;
  text-decoration: none;
  font-weight: 600;
}

.zmauth-footer a:hover {
  text-decoration: underline;
}

/* Responsive Media Query */

@media (max-width: 768px) {
  .zmauth-modal-container {
    flex-direction: column;
    max-height: 90vh;
    overflow-y: auto;
  }
}

@media (max-width: 768px) {
  .zmauth-panel-left {
    width: 100%;
    padding: 30px;
  }
}

@media (max-width: 768px) {
  .zmauth-panel-right {
    width: 100%;
    padding: 30px 20px;
  }
}

.zmauth-bg-gradient {
  background: linear-gradient(135deg, #f57e3a, #e9511a);
}

.zmauth-text-brand {
  color: #e9511a;
  transition: color 0.2s;
}

.zmauth-text-brand:hover {
  color: #c24102;
}

.zmauth-input:focus {
  border-color: #e9511a;
  box-shadow: 0 0 0 0.25rem rgba(233, 81, 26, 0.25);
}

.zmauth-btn-brand {
  background-color: #ea580c;
  border-color: #ea580c;
  color: white;
}

.zmauth-btn-brand:hover {
  background-color: #c24102;
  border-color: #c24102;
  color: white;
}

.zmauth-divider-line {
  border-top: 1px solid #dee2e6;
  position: absolute;
  width: 100%;
  top: 50%;
  z-index: 1;
}

.zmauth-divider-text {
  z-index: 2;
  letter-spacing: 0.5px;
}

