@use '../../styles/auth-shared' as auth;

.login-container {
  @include auth.auth-container;
}

.login-card-wrapper {
  @include auth.auth-card-wrapper(460px, -8rem);
}

.login-card-border {
  @include auth.auth-card-border;
}

.login-card {
  @include auth.auth-card;
}

.login-header {
  @include auth.auth-header;
}

.logo-wrapper {
  @include auth.auth-logo;
}

.logo-icon {
  @include auth.auth-logo-icon;
}

.login-title {
  @include auth.auth-title;
}

.login-subtitle {
  @include auth.auth-subtitle;
  font-size: 1rem;
}

.oidc-warning {
  margin-bottom: 1.5rem;
  padding: 1rem;
  border-radius: 0.75rem;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  animation: fadeIn 0.3s ease-out;
}

.warning-content {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.warning-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fbbf24;
  font-size: 0.875rem;
  font-weight: 600;

  i {
    font-size: 1rem;
  }
}

.warning-message {
  font-size: 0.875rem;
  color: #fcd34d;
  line-height: 1.5;
  margin: 0;
}

.warning-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.login-form {
  @include auth.auth-form(1.5rem);
}

.form-field {
  @include auth.form-field;
}

.form-label {
  @include auth.form-label;
}

.form-input {
  @include auth.form-input;
}

.login-button {
  @include auth.auth-button;
  margin-top: 0.5rem;
}

.error-message {
  @include auth.error-message;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 1.5rem 0;

  &::before,
  &::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  span {
    padding: 0 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
  }
}

.oidc-button {
  ::ng-deep button {
    height: 2.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;

    &:hover:not(:disabled) {
      background: rgba(255, 255, 255, 0.1);
      border-color: rgba(255, 255, 255, 0.25);
      transform: translateY(-1px);
    }
  }
}

.help-text {
  text-align: center;
  margin-top: 0.5rem;
}

.text-link {
  background: none;
  border: none;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 0;

  &:hover {
    color: rgba(255, 255, 255, 0.8);
  }

  &.primary {
    color: var(--primary-color);

    &:hover {
      color: #60a5fa;
    }
  }
}
