/*
 * Copyright (C) 2015 - present Instructure, Inc.
 *
 * This file is part of Canvas.
 *
 * Canvas is free software: you can redistribute it and/or modify it under
 * the terms of the GNU Affero General Public License as published by the Free
 * Software Foundation, version 3 of the License.
 *
 * Canvas is distributed in the hope that it will be useful, but WITHOUT ANY
 * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 * A PARTICULAR PURPOSE. See the GNU Affero General Public License for more
 * details.
 *
 * You should have received a copy of the GNU Affero General Public License along
 * with this program. If not, see <http://www.gnu.org/licenses/>.
 */

///
//// SSO Login Links
///
@mixin shared-sso($direction) {
  content: "";
  flex: 1;
  height: 1px;
  margin: 0 1em;
  background: linear-gradient(to $direction, darken($ic-color-neutral, 10), transparent);
}
.ic-Login__sso {
  clear: both;
  text-align: center;
}
.ic-Login__sso-divider {
  padding: 10px 0;
  margin: 0;
  line-height: normal;
  @include fontSize(11px);
  color: darken($ic-color-neutral, 10);
  display: flex;
  align-items: center;
  border-top: 1px solid $ic-border-color;
}
.ic-Login__sso-list {
  padding: direction-sides($ic-sp 0 0 0);
  margin: direction-sides($ic-sp*2 0 0 0);
  border-top: 1px solid var(--ic-brand-Login-footer-link-color);
}
.ic-Login__sso-list__item {
  list-style: none;
  display: inline-block;
}

.Button.ic-Login__sso-button {
  padding: $ic-sp $ic-sp*2;
  background: transparent;
  color: var(--ic-brand-Login-footer-link-color);
  border: 1px solid transparent;
  .ic-icon-svg {
    width: 26px;
    height: 26px;
    display: inline-block;
    vertical-align: middle;
    fill: var(--ic-brand-Login-footer-link-color);
  }
  &--has-text {
    display: flex;
    align-items: center;
  }
  &:focus,
  &:hover {
    background: transparent;
    color: var(--ic-brand-Login-footer-link-color-hover);
    border: 1px solid var(--ic-brand-Login-footer-link-color-hover);
    &.ui-state-hover {
      background: transparent;
      color: var(--ic-brand-Login-footer-link-color-hover);
      border: 1px solid var(--ic-brand-Login-footer-link-color-hover);
    }
  }
  transition: all 0.5s;
}
.ic-Login__icon-sso {
  padding-#{direction(right)}: $ic-sp;
}
.ic-Login__icon-sso--icon-only {
  padding-#{direction(right)}: 0;
}
.ic-Login__sso-button__title {
  color: var(--ic-brand-Login-footer-link-color);
  padding: 0 $ic-sp;
}
.ic-Login__sso-button__title-caps {
  text-transform: capitalize;
}
