/* Portal Login - Corporate Styling */
/* CSS Variables for easy theming */
:root {
  --brand: #2563eb;
  --brand-600: #1d4ed8;
  --brand-700: #1e40af;
  --glass-bg: rgba(255, 255, 255, 0.95);
  --glass-border: rgba(255, 255, 255, 0.2);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
}

/* Reset and base styles */
.portal-login-body {
  margin: 0;
  padding: 1rem;
  padding-bottom: 70px; /* Footer için alan bırak */
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Wrapper to contain login and type selection */
.portal-login-wrapper {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Main login container */
.portal-login-container {
  width: 100%;
}


/* Glassmorphism card */
.portal-login-card {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

/* Brand header */
.portal-brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
}

.portal-logo {
  height: 100px;
  width: auto;
  margin-bottom: 0.75rem;
}

.portal-brand-text {
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 600;
  text-align: center;
  line-height: 1.2;
}

/* Step indicator */
.portal-step-indicator {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.portal-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.portal-step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
}

.portal-step.active {
  background: var(--brand);
  color: white;
}

.portal-step.active .portal-step-number {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.portal-step.inactive {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-secondary);
}

.portal-step.inactive .portal-step-number {
  background: var(--text-secondary);
  color: white;
}

/* Message area */
.portal-message-area {
  margin-bottom: 1.5rem;
}

.portal-alert {
  border-radius: 8px;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 0;
}

.portal-alert.alert-info {
  background: rgba(59, 130, 246, 0.1);
  color: var(--brand-700);
  border-left: 4px solid var(--brand);
}

.portal-alert.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border-left: 4px solid var(--danger);
}

/* Form styling */
.portal-form-group {
  margin-bottom: 1.5rem;
}

.portal-form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
  font-size: 0.875rem;
}

.portal-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.portal-form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: white;
}

.portal-form-control:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.portal-form-control:disabled {
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-secondary);
  cursor: not-allowed;
}

.portal-form-control.is-invalid {
  border-color: var(--danger);
}

.portal-form-control.is-invalid:focus {
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.portal-input-icon {
  position: absolute;
  right: 1rem;
  color: var(--text-secondary);
  pointer-events: none;
  z-index: 2;
}

.portal-form-text {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}
.form-check-label a {
  color: #2563eb;
  font-weight: 500;
}

.form-check-label a:hover {
  color: #1d4ed8;
  text-decoration: underline !important;
}

/* Button styling */
.portal-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.portal-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  background-color: #6c757d !important;
  border-color: #6c757d !important;
}

.portal-btn-primary {
  background: var(--brand);
  color: white;
}

.portal-btn-primary:hover:not(:disabled) {
  background: var(--brand-600);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.portal-btn-success {
  background: var(--success);
  color: white;
}

.portal-btn-success:hover:not(:disabled) {
  background: #059669;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Spinner animation */
.portal-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: portal-spin 1s linear infinite;
}

@keyframes portal-spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Responsive design */
@media (max-width: 768px) {
  .portal-login-body {
    padding: 0.5rem;
  }
  
  .portal-login-wrapper {
    max-width: 100%;
  }
  
  .portal-login-card {
    padding: 1.5rem;
  }
  
  .portal-brand-header {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
  
  .portal-logo {
    height: 70px;
  }
  
  .portal-brand-text {
    text-align: center;
    font-size: 0.9rem;
  }
  
  .portal-step-indicator {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .portal-step {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .portal-login-card {
    padding: 1rem;
  }
  
  .portal-brand-header {
    margin-bottom: 1.5rem;
  }
  
  .portal-step-indicator {
    margin-bottom: 1.5rem;
  }
}

/* Accessibility improvements */
.portal-form-control:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

.portal-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .portal-login-card {
    background: white;
    border: 2px solid var(--text-primary);
  }
  
  .portal-form-control {
    border: 2px solid var(--text-primary);
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .portal-form-control,
  .portal-btn,
  .portal-step {
    transition: none;
  }
  
  .portal-spinner {
    animation: none;
  }
}

/* Portal Type Selection - Minimal Design */
.portal-type-selection {
  width: 100%;
  margin-top: 0.5rem;
  margin-bottom: 1rem; /* Footer için alan bırak */
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.portal-type-btn {
  flex: 1;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 12px;
  padding: 0.5rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.portal-type-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-color: rgba(255, 255, 255, 0.5);
}

.portal-type-btn i {
  font-size: 2rem;
  color: var(--brand);
  flex-shrink: 0;
  margin-bottom: 0.25rem;
}

.portal-type-btn-supplier i {
  color: var(--success);
}

.portal-type-btn-text {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  text-align: center;
}

.portal-type-btn-text small {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.25rem;
}

.portal-type-btn-text strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

/* Responsive design for type selection */
@media (max-width: 768px) {
  .portal-type-selection {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .portal-type-btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .portal-type-btn {
    padding: 1rem 0.875rem;
  }
  
  .portal-type-btn i {
    font-size: 1.75rem;
  }
  
  .portal-type-btn-text strong {
    font-size: 0.875rem;
  }
  
  .portal-type-btn-text small {
    font-size: 0.8rem;
  }
}

/* Footer Styles */
.portal-login-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding: 0.5rem 0;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.portal-login-footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.portal-login-footer p {
  margin: 0;
  color: var(--text-secondary);
}

.portal-login-footer a {
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.portal-login-footer a:hover {
  color: var(--brand);
}

.portal-login-footer small {
  font-size: 0.7rem;
}

@media (max-width: 768px) {
  .portal-login-body {
    padding-bottom: 70px; /* Mobilde footer için daha az alan */
  }
  
  .portal-login-footer {
    padding: 0.4rem 0;
  }
  
  .portal-login-footer small {
    font-size: 0.65rem;
  }
}

/* Fieldset and Legend Styles */
fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

legend {
  padding: 0;
  margin-bottom: 0.5rem;
  font-size: 1rem;
  font-weight: bold;
  color: var(--text-primary);
}


