@import "zenith/variables.css";

body.portal-body-bg {
  background-color: #ffffff;
  min-height: 100vh;
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}

.portal-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}
@media (max-width: 992px) {
  .portal-wrapper {
    flex-direction: column-reverse;
  }
}

.portal-form-side {
  flex: 1;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 3rem;
}
@media (max-width: 992px) {
  .portal-form-side {
    flex: 1;
    padding: 2rem 1.5rem;
  }
}

.portal-form-container {
  width: 100%;
  max-width: 400px;
}

.portal-form-header {
  margin-bottom: 3rem;
}
.portal-form-header h1 {
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.5rem;
}
.portal-form-header p {
  color: #6c757d;
}

.portal-brand-side {
  flex: 1.2;
  background: linear-gradient(135deg, var(--zenith-primary) 0%, var(--zenith-secondary) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5rem;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}
@media (max-width: 992px) {
  .portal-brand-side {
    padding: 3rem 1.5rem;
    flex: 0 0 auto;
    min-height: 300px;
  }
}
.portal-brand-side::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="30" height="30" viewBox="0 0 30 30" xmlns="http://www.w3.org/2000/svg"><g fill="%23ffffff" fill-opacity="0.03" fill-rule="evenodd"><path d="M15 0L30 15L15 30L0 15z"/></g></svg>');
  opacity: 0.5;
}
.portal-brand-side .brand-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 500px;
}
.portal-brand-side .brand-icon-large {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
  font-size: 2.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.portal-brand-side h2 {
  font-weight: 700;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}
.portal-brand-side p {
  font-size: 1.125rem;
  opacity: 0.9;
  font-weight: 500;
}

.portal-form-container .form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.5rem;
}

.portal-form-container .form-control {
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid #dee2e6;
  font-size: 0.95rem;
  transition: all 0.2s ease-in-out;
}
.portal-form-container .form-control:focus {
  border-color: var(--zenith-primary);
  box-shadow: 0 0 0 4px rgba(65, 88, 208, 0.1);
  z-index: 3;
}

/* Input Group Styling for Password Toggles */
.portal-form-container .input-group .form-control {
  border-right: none;
}

.portal-form-container .input-group .btn {
  border-left: none;
  border-color: #dee2e6;
  padding: 0 1.5rem;
  border-top-right-radius: 0.75rem;
  border-bottom-right-radius: 0.75rem;
  color: #6c757d;
  display: flex;
  align-items: center;
}

.portal-form-container .input-group .btn:hover,
.portal-form-container .input-group .btn:focus {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: var(--zenith-primary);
  z-index: 4;
}

.portal-form-container .input-group:focus-within .btn {
  border-color: var(--zenith-primary);
}

.btn-portal {
  background: linear-gradient(135deg, var(--zenith-primary) 0%, var(--zenith-secondary) 100%);
  border: none;
  color: #ffffff;
  padding: 1rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(65, 88, 208, 0.2);
  width: 100%;
}
.btn-portal:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(65, 88, 208, 0.3);
  filter: brightness(1.1);
  color: #ffffff;
}
.btn-portal:active {
  transform: translateY(0);
}

.portal-footer {
  margin-top: 3rem;
  border-top: 1px solid #f8f9fa;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: #adb5bd;
}
