/*
 * 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/>.
 */

@import 'base/environment';

#login_information {
  > table {
    border-collapse: collapse;
    width: 100%;
  }
  tr.login > th, tr.login > td {
    padding-top: 0;
    padding-bottom: 5px;
    border-bottom: 1px solid #eee;
    vertical-align: top;
    &.sso-icon {
      padding-top: 6px;

      .ic-icon-svg {
        width: 26px;
        height: 26px;
      }
    }
  }
  .unique_id, .sis_user_id, .integration_id {
    overflow-wrap: anywhere;
  }
  .account_name {
    line-height: 3.0;
  }
  .login_details {
    padding: 0;
  }
  .login_details td:first-child {
    font-weight: bold;
  }
  .login_details:last-child {
    & td {
      border-bottom: none;
    }
  }
  .login_details_link {
    font-style: normal;
  }
  .links {
    white-space: nowrap;
    text-align: direction(right);
    font-size: 0.8em;
    padding-#{direction(left)}: 30px;
  }
}

#login_information.responsive {
  .overview, .account, .details {
    width: 100%;
    display: inline-block;
    padding-#{direction(right)}: 0;
  }

  .links {
    padding-#{direction(left)}: 0;
  }

  @include breakpoint(desktop) {
    tr.login > th, tr.login > td {
      border-bottom: 1px solid #eee;
    }

    .overview, .account, .details {
      width: initial;
      display: table-cell;
      padding-#{direction(right)}: initial;
    }

    .links {
      padding-#{direction(left)}: 30px;
    }
  }
}
