/*
 * SinavBox Authentication Pages Styles
 * Split-screen authentication pages
 */

/* ===== BRAND SECTION ===== */
.auth-brand-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.auth-brand-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.auth-brand-image {
  width: 70%;
  height: 70%;
  object-fit: contain;
  object-position: center;
}

.auth-brand-logo {
  margin-bottom: var(--auth-space-2xl);
  z-index: 1;
  position: relative;
}

.auth-brand-logo img,
.auth-brand-logo i {
  font-size: 32px;
  color: var(--auth-white);
  margin-bottom: var(--auth-space-md);
}

.auth-brand-logo .logo-text {
  font-size: var(--auth-text-2xl);
  font-weight: var(--auth-font-bold);
  color: var(--auth-white);
}

.auth-brand-title {
  font-size: var(--auth-text-4xl);
  font-weight: var(--auth-font-bold);
  line-height: 1.2;
  margin-bottom: var(--auth-space-lg);
  z-index: 1;
  position: relative;
}

.auth-brand-subtitle {
  font-size: var(--auth-text-lg);
  line-height: 1.6;
  opacity: 0.95;
  margin-bottom: var(--auth-space-2xl);
  max-width: 480px;
  z-index: 1;
  position: relative;
}

.auth-brand-features {
  list-style: none;
  margin-bottom: var(--auth-space-2xl);
  z-index: 1;
  position: relative;
}

.auth-brand-features li {
  display: flex;
  align-items: center;
  gap: var(--auth-space-md);
  margin-bottom: var(--auth-space-lg);
  font-size: var(--auth-text-base);
}

.auth-brand-features li i,
.auth-brand-features li .feature-icon {
  font-size: 24px;
  width: 40px;
  text-align: center;
}

.auth-brand-trust {
  display: flex;
  gap: var(--auth-space-xl);
  flex-wrap: wrap;
  font-size: var(--auth-text-sm);
  opacity: 0.9;
  z-index: 1;
  position: relative;
  margin-top: auto;
  padding-top: var(--auth-space-2xl);
}

.auth-brand-trust-item {
  display: flex;
  align-items: center;
  gap: var(--auth-space-sm);
}

/* ===== FORM SECTION ===== */
.auth-form-container {
  width: 100%;
  max-width: 480px;
}

.auth-form-logo {
  margin-bottom: var(--auth-space-sm);
  text-align: center;
  display: block;
  transition: opacity 0.2s ease;
}

.auth-form-logo:hover {
  opacity: 0.8;
}

.auth-form-logo img,
.auth-form-logo i {
  font-size: 32px;
  color: var(--auth-primary);
  margin-bottom: var(--auth-space-md);
}

.auth-form-title {
  font-size: var(--auth-text-3xl);
  font-weight: var(--auth-font-bold);
  color: var(--auth-gray-900);
  margin-bottom: var(--auth-space-sm);
}

.auth-form-subtitle {
  font-size: var(--auth-text-base);
  color: var(--auth-gray-600);
  margin-bottom: var(--auth-space-2xl);
}

/* ===== FORM ELEMENTS ===== */
.auth-form-group {
  margin-bottom: var(--auth-space-lg);
}

.auth-form-label {
  display: block;
  font-size: var(--auth-text-sm);
  font-weight: var(--auth-font-medium);
  color: var(--auth-gray-700);
  margin-bottom: var(--auth-space-sm);
}

.auth-form-label .required {
  color: var(--auth-error);
  margin-left: var(--auth-space-xs);
}

.auth-form-input {
  width: 100%;
  padding: 12px var(--auth-space-md);
  font-size: var(--auth-text-base);
  font-family: var(--auth-font-primary);
  border: 1px solid var(--auth-gray-300);
  border-radius: var(--auth-radius-md);
  background: var(--auth-white);
  transition: all var(--auth-transition-base);
}

.auth-form-input:focus {
  outline: none;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(95, 168, 184, 0.1);
}

.auth-form-input.error {
  border-color: var(--auth-error);
}

.auth-form-input.success {
  border-color: var(--auth-success);
}

.auth-form-input:disabled,
.auth-form-input[readonly] {
  background: var(--auth-gray-50);
  cursor: not-allowed;
}

.auth-form-error {
  display: block;
  font-size: var(--auth-text-sm);
  color: var(--auth-error);
  margin-top: var(--auth-space-xs);
}

.auth-form-help {
  display: block;
  font-size: var(--auth-text-sm);
  color: var(--auth-gray-500);
  margin-top: var(--auth-space-xs);
}

/* ===== PASSWORD STRENGTH ===== */
.auth-password-strength {
  margin-top: var(--auth-space-sm);
}

.auth-password-strength-bar {
  height: 4px;
  background: var(--auth-gray-200);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: var(--auth-space-xs);
}

.auth-password-strength-bar-fill {
  height: 100%;
  transition: all var(--auth-transition-base);
  border-radius: 2px;
}

.auth-password-strength-bar-fill.weak {
  width: 33%;
  background: var(--auth-error);
}

.auth-password-strength-bar-fill.medium {
  width: 66%;
  background: var(--auth-warning);
}

.auth-password-strength-bar-fill.strong {
  width: 100%;
  background: var(--auth-success);
}

.auth-password-strength-text {
  font-size: var(--auth-text-xs);
  color: var(--auth-gray-600);
}

/* ===== CHECKBOX & RADIO ===== */
.auth-form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--auth-space-sm);
  margin-bottom: var(--auth-space-lg);
}

.auth-form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  cursor: pointer;
  accent-color: var(--auth-primary);
}

.auth-form-checkbox label {
  font-size: var(--auth-text-sm);
  color: var(--auth-gray-700);
  cursor: pointer;
  margin: 0;
}

.auth-form-checkbox label a {
  color: var(--auth-primary);
  text-decoration: none;
}

.auth-form-checkbox label a:hover {
  text-decoration: underline;
}

/* Exam Type Selection Cards */
.auth-exam-type-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--auth-space-md);
  margin-bottom: var(--auth-space-lg);
}

.auth-exam-type-card {
  border: 2px solid var(--auth-gray-300);
  border-radius: var(--auth-radius-md);
  padding: var(--auth-space-lg);
  text-align: center;
  cursor: pointer;
  transition: all var(--auth-transition-base);
  background: var(--auth-white);
}

.auth-exam-type-card:hover {
  border-color: var(--auth-primary);
}

.auth-exam-type-card.selected {
  border-color: var(--auth-primary);
  background: rgba(95, 168, 184, 0.05);
}

.auth-exam-type-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--auth-gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--auth-space-md);
  color: var(--auth-white);
  font-size: 24px;
}

.auth-exam-type-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.auth-exam-type-card-label {
  font-weight: var(--auth-font-semibold);
  color: var(--auth-gray-900);
  display: block;
}

/* ===== BUTTONS ===== */
.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--auth-space-sm);
  padding: 12px var(--auth-space-lg);
  font-size: var(--auth-text-base);
  font-weight: var(--auth-font-medium);
  font-family: var(--auth-font-primary);
  text-decoration: none;
  border: none;
  border-radius: var(--auth-radius-md);
  cursor: pointer;
  transition: all var(--auth-transition-base);
  width: 100%;
}

.auth-btn-primary {
  background: var(--auth-gradient-button);
  color: var(--auth-white);
  box-shadow: var(--auth-shadow-md);
}

.auth-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--auth-shadow-lg);
}

.auth-btn-primary:active {
  transform: translateY(0);
}

.auth-btn-social {
  background: var(--auth-white);
  border: 1px solid var(--auth-gray-300);
  color: var(--auth-gray-700);
}

.auth-btn-social:hover {
  background: var(--auth-gray-50);
  border-color: var(--auth-gray-400);
}

.auth-btn-social i {
  font-size: 20px;
}

/* ===== DIVIDER ===== */
.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: var(--auth-space-xl 0);
  color: var(--auth-gray-400);
  font-size: var(--auth-text-sm);
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--auth-gray-300);
}

.auth-divider span {
  padding: 0 var(--auth-space-md);
}

/* ===== INVITATION BANNER ===== */
.auth-invitation-banner {
  background: rgba(95, 168, 184, 0.1);
  border: 1px solid rgba(95, 168, 184, 0.3);
  border-radius: var(--auth-radius-lg);
  padding: var(--auth-space-lg);
  margin-bottom: var(--auth-space-xl);
}

.auth-invitation-banner-header {
  display: flex;
  align-items: center;
  gap: var(--auth-space-md);
  margin-bottom: var(--auth-space-md);
}

.auth-invitation-banner-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--auth-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--auth-white);
  font-size: 20px;
}

.auth-invitation-banner-title {
  font-weight: var(--auth-font-semibold);
  color: var(--auth-gray-900);
  margin-bottom: var(--auth-space-xs);
}

.auth-invitation-banner-subtitle {
  font-size: var(--auth-text-sm);
  color: var(--auth-gray-600);
}

.auth-invitation-details {
  margin-top: var(--auth-space-md);
  padding-top: var(--auth-space-md);
  border-top: 1px solid rgba(95, 168, 184, 0.2);
}

.auth-invitation-details-row {
  display: flex;
  justify-content: space-between;
  padding: var(--auth-space-sm) 0;
  font-size: var(--auth-text-sm);
}

.auth-invitation-details-label {
  color: var(--auth-gray-600);
}

.auth-invitation-details-value {
  color: var(--auth-gray-900);
  font-weight: var(--auth-font-medium);
}

.auth-invitation-warning {
  background: #FEF3C7;
  border-radius: var(--auth-radius-md);
  padding: var(--auth-space-md);
  margin-top: var(--auth-space-md);
  display: flex;
  align-items: center;
  gap: var(--auth-space-sm);
  font-size: var(--auth-text-sm);
  color: var(--auth-gray-800);
}

/* ===== PROFILE PHOTO UPLOAD ===== */
.auth-profile-photo {
  text-align: center;
  margin-bottom: var(--auth-space-xl);
}

.auth-profile-photo-container {
  position: relative;
  display: inline-block;
  margin-bottom: var(--auth-space-md);
}

.auth-profile-photo-preview {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--auth-gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid var(--auth-gray-300);
  transition: all var(--auth-transition-base);
}

.auth-profile-photo-preview:hover {
  border-color: var(--auth-primary);
}

.auth-profile-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth-profile-photo-preview i {
  font-size: 48px;
  color: var(--auth-gray-400);
}

.auth-profile-photo-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--auth-transition-base);
  cursor: pointer;
}

.auth-profile-photo-container:hover .auth-profile-photo-overlay {
  opacity: 1;
}

.auth-profile-photo-overlay i {
  color: var(--auth-white);
  font-size: 24px;
}

.auth-profile-photo-input {
  display: none;
}

.auth-profile-photo-label {
  font-size: var(--auth-text-sm);
  color: var(--auth-gray-600);
  cursor: pointer;
}

/* ===== FOOTER LINKS ===== */
.auth-form-footer {
  text-align: center;
  margin-top: var(--auth-space-xl);
  font-size: var(--auth-text-sm);
  color: var(--auth-gray-600);
}

.auth-form-footer a {
  color: var(--auth-primary);
  text-decoration: none;
  font-weight: var(--auth-font-medium);
}

.auth-form-footer a:hover {
  text-decoration: underline;
}

/* ===== ALERT MESSAGES ===== */
.auth-alert {
  padding: var(--auth-space-md);
  border-radius: var(--auth-radius-md);
  margin-bottom: var(--auth-space-lg);
  display: flex;
  align-items: center;
  gap: var(--auth-space-sm);
  font-size: var(--auth-text-sm);
}

.auth-alert-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--auth-error);
}

.auth-alert-success {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: var(--auth-success);
}

.auth-alert-info {
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: var(--auth-info);
}

