/** Copyright 2005-2015 Alfresco Software, Ltd.
 * 
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
 
/* Login 
 *
 * Based on http://bootsnipp.com/snippets/featured/custom-login-registration-amp-forgot-password 
 * (MIT license) (see http://bootsnipp.com/license)
 *
 * Snippets License (MIT license)
 * Copyright (c) 2013 Bootsnipp.com
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), 
 * to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense,  * and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 */

.login-container {
    --login-bg: #f0f6fa;
    --login-surface: #ffffff;
    --login-border: #d0e8f5;
    --login-accent: #00c4ee;
    --login-accent2: #0066ff;
    --login-text: #0d1f2d;
    --login-muted: #6a8899;
    --login-error: #e03b5a;

    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--login-bg);
    font-family: 'Nunito', sans-serif;
    font-size: 16px;
    color: var(--login-text);
    min-height: 100vh;
    width: 100%;
}
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle, #b8dff0 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.5;
    pointer-events: none;
}
.login-decor {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    animation: orbFloat 10s ease-in-out infinite;
}
.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 102, 255, 0.12), transparent 70%);
    top: -150px;
    right: -100px;
}
.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 196, 238, 0.12), transparent 70%);
    bottom: -100px;
    left: -80px;
    animation-delay: -5s;
}
.orb-3 {
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.08), transparent 70%);
    top: 50%;
    left: 30%;
    animation-delay: -2s;
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(15px, -25px); }
}
.login-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    z-index: 1;
}
.login-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 440px;
    padding: 20px;
}
.login-card {
    position: relative;
    background: var(--login-surface);
    border: 1px solid var(--login-border);
    border-radius: 24px;
    padding: 52px 44px 60px;
    overflow: hidden;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.04),
        0 20px 60px rgba(0, 196, 238, 0.10),
        0 1px 0 rgba(255, 255, 255, 0.9) inset;
}
.login-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(90deg, var(--login-accent2), var(--login-accent), #38bdf8);
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    margin-bottom: 36px;
}
.brand-logo {
    max-height: 60px;
    max-width: 100%;
    object-fit: contain;
}
.login-title {
    font-size: 1.9em;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin: 0 0 6px;
}
.login-subtitle {
    font-size: 0.9em;
    color: var(--login-muted);
    margin: 0 0 32px;
}
.error-msg {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff5f7;
    border: 1px solid rgba(224, 59, 90, 0.2);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 22px;
    font-size: 0.85em;
    color: var(--login-error);
    overflow: hidden;
}
.error-msg.ng-enter-active {
    animation: loginErrorShake 0.4s ease;
}
.error-msg.ng-enter,
.error-msg.ng-leave.ng-leave-active {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    border-width: 0;
}
.error-msg.ng-enter.ng-enter-active,
.error-msg.ng-leave {
    max-height: 80px;
    opacity: 1;
    margin-bottom: 22px;
    padding-top: 12px;
    padding-bottom: 12px;
    border-width: 1px;
}
.error-msg.ng-enter,
.error-msg.ng-enter.ng-enter-active,
.error-msg.ng-leave,
.error-msg.ng-leave.ng-leave-active {
    transition: max-height 0.25s ease, opacity 0.2s ease, margin-bottom 0.25s ease, padding 0.25s ease, border-width 0.25s ease;
}
.error-msg svg {
    flex: none;
    width: 16px;
    height: 16px;
}
@keyframes loginErrorShake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}
.login-container .form-group {
    margin-bottom: 18px;
}
.login-container label {
    display: block;
    font-size: 0.78em;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--login-muted);
    margin-bottom: 8px;
}
.input-wrapper {
    position: relative;
}
.input-wrapper > svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    stroke: #b0bec8;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
    transition: stroke 0.2s;
}
.login-container input[type="text"],
.login-container input[type="password"] {
    width: 100%;
    background: #f7f9fc;
    border: 1.5px solid var(--login-border);
    border-radius: 11px;
    padding: 13px 14px 13px 42px;
    font-family: inherit;
    font-size: 0.95em;
    color: var(--login-text);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}
.login-container input[type="text"]:focus,
.login-container input[type="password"]:focus {
    border-color: var(--login-accent);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(0, 196, 238, 0.1);
}
.login-container input[type="text"]:focus + svg,
.login-container input[type="password"]:focus + svg {
    stroke: var(--login-accent);
}
.login-container input::placeholder {
    color: #b8c4d0;
}
.toggle-pw {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    color: var(--login-muted);
    transition: color 0.2s;
    border-radius: 6px;
}
.toggle-pw:hover {
    color: var(--login-accent);
}
.toggle-pw svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.login-container .login-button {
    width: 100%;
    padding: 14px;
    margin-top: 10px;
    background: linear-gradient(135deg, var(--login-accent2), var(--login-accent));
    border: none;
    border-radius: 11px;
    font-family: inherit;
    font-size: 0.95em;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s, opacity 0.25s ease, filter 0.25s ease;
    box-shadow: 0 4px 16px rgba(0, 196, 238, 0.35);
    letter-spacing: 0.02em;
}
.login-container .login-button:hover:not([disabled]) {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 196, 238, 0.4);
}
.login-container .login-button:active:not([disabled]) {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(0, 196, 238, 0.25);
}
.login-container .login-button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    filter: grayscale(40%);
    box-shadow: none;
}
.login-version {
    margin-top: 28px;
    text-align: center;
    color: #b0bec8;
    font-size: 0.78em;
}
.login-footer {
    margin-top: 28px;
    text-align: center;
    color: #b0bec8;
    font-size: 0.78em;
}
.login-version + .login-footer {
    margin-top: 4px;
}

/**
 Colors:
 
  - Header: #333333
  - Subheader: #e8edf1
  - Subheader border: #a4acb9
  - Highlight buttons/text: #2980b9
  - Text color: #1a1a1a
  - Filter color: #373e48
  - Dark highlight: #606b7d

*/

body {
	background-color: #ffffff;
	padding-bottom: 15px;
}
body.login-page {
	padding-bottom: 0;
}

.btn .badge {
	background-color: #ffffff;
	color: #2980b9;
}

.item-wrapper > div {
	margin-right: 5px;
}

.filter-list.compact {
	padding-top: 0px;	
}

 ul {
	list-style: none;
	list-style-position: inside;
	padding-left: 5px;
}

.box > div {
	min-height: 50px;
}
.box h2 {
	margin: 5px;
	font-size: 18px;
	color: #606b7d;
}
.summaries {
	width: 50%;
}

.user-summary {
	text-align: center;
	margin: 5px 1%;
	float: left;
	width: 23%;
}

.user-summary .icon {
	font-size: 30px;
	height: 30px;
	padding: 0;
	margin: 5px 0 0 0;
	line-height: 30px;
	color: #606b7d;
}


.user-summary span {
	line-height: 30px;
}

.item-wrapper .message a {
	padding: 0 10px;
}

.users td {
	border: 1px solid #f1f1f1;
	padding: 5px;
	color: #373e48;
}

td.control {
	text-align: center;
}

.users tr.selected td {
		background-color: #f4f4f4;
}

.users tr:hover td{
	background-color: #e8edf1;
	border: 1px solid #e8edf1;
	cursor: pointer;
}


.users th {
	height: 20px;
	background-color:#a4acb9;
	color: #ffffff;
	padding: 5px;
}

ul.user-list {
	padding-left: 10px;
}
ul.user-list i {
	padding-right: 5px;	
}

ul.user-list li span {
	color: #666666;
}

.bar {
	width: 100%;
	margin: 5px 5px 5px 0px;
	padding-right: 10px;
	height: 10px;
	overflow: hidden;
}

.bar > div {
	height: 10px;
	float: left;
}

i.user-active {
	color: #2980b9;
}

div.user-active {
	background-color: #2980b9;
}

i.user-inactive {
	color: #a4acb9;
}

div.user-inactive {
	background-color: #a4acb9;
}

i.user-deleted {
	color: #FF5741;
}

div.user-deleted {
	background-color: #FF5741;
}

i.user-pending {
	color: #FFC541;
}

div.user-pending {
	background-color: #FFC541;
}

i.user-trial {
	color: #a4acb9;
}

div.user-trial {
	background-color: #a4acb9;
}

i.user-enterprise {
	color: #2980b9;
}

div.user-enterprise {
	background-color: #2980b9;
}

.nopadding > div {
	padding: 0px;
}

.nopadding .form-group {
	padding-right: 5px;
}

/* List Filter */
.filter-wrapper {
    min-height: 400px;
    margin-top: 10px;
}

ul.filter-list {
    list-style: none;
    list-style-position: inside;
    padding-left: 0px;
    padding-top: 10px;
}

ul.filter-list li a {
    display: block;
    color: #373e48;
    font-size: 17px;
    margin: 10px 5px 10px 0px;
    padding-left: 10px;
}

ul.filter-list li.current a {
    color: #2980b9;
    padding-left: 5px;
    border-left: 4px solid #2980b9;
}

ul.filter-list li a:hover, ul.filter-list li a:focus {
    text-decoration: none;
    background-color: #e8edf1;
}

ul.filter-list li.current a:hover, ul.filter-list li.current a:focus {
    background-color: transparent;
    color: #2980b9;
    cursor: default;
    text-decoration: none;
}

.user-detail {
    padding: 5px 40px 5px 0;
}

.users-details .glyphicon {
    margin-right: 5px;
}

.subtle-event {
    color: #606b7d;
}

/* Groups */

.group-member .glyphicon {
    margin-right: 5px;
}

.potential-group-member { 
    cursor: pointer;
    font-size: 16px;
}

.potential-group-member-selected {
    color: #2980b9;
}

.subgroup {
    cursor: pointer;
}

.disabled-group {
    text-decoration: line-through;
    color: #808080;
}

/* Inspired by http://jsfiddle.net/mehmetatas/fXzHS/2/ */

.group-tree li {
    margin: 0px 0;
    list-style-type: none;
    position: relative;
    padding: 20px 5px 0px 10px;
}

.group-tree ul {
    padding-left: 10px;
}

.group-tree li::before {
    content:'';
    position: absolute;
    top: 0;
    width: 1px;
    height: 100%;
    right: auto;
    left: 0px;
    border-left: 1px solid #ccc;
    bottom: 50px;
}
.group-tree li::after {
    content:'';
    position: absolute;
    top: 35px;
    width: 10px;
    height: 20px;
    right: auto;
    left: 0px;
    border-top: 1px solid #ccc;
}
.group-tree li a {
    display: inline-block;
    font-size: 16px;
    border: 1px solid #ccc;
    padding: 5px 16px;
    text-decoration: none;
    color: #000;
    border-radius: 5px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
}

.group-tree li a.active {
    background-color: #c8e4f8;
}

.group-tree .group-icon {
    font-size: 14px;
    color: #999;
    padding-right: 5px;
}

/*Remove connectors before root*/
.group-tree > ul > li::before, .group-tree > ul > li::after {
    border: 0;
}
/*Remove connectors after last child*/
.group-tree li:last-child::before {
    height: 35px;
}

/*We will apply the hover effect the lineage of the element also*/
.group-tree li a:hover, .group-tree li a:hover+ul li a {
    background-color: #eeeeee;
    color: #000;
}
/*Connector styles on hover*/
.group-tree li a:hover+ul li::after, .group-tree li a:hover+ul li::before, .group-tree li a:hover+ul::before, .group-tree li a:hover+ul ul::before {
    border-color: #94a0b4;
}

.user-search-field {
    margin: 20px 0 15px 0;
    width: 40%;
}

/* profile */

.profile-detail {
    padding: 5px 0 5px 5px;
    margin: 0 0 5px -5px;
}

.profile-detail:hover {
    cursor: pointer;
    background:  #e8edf1;
}

.profile-detail .nothing-to-see {
    padding: 0px;
    color: #999999;
}

.list-wrapper h4 {
    font-size: 13px;
    font-weight: normal;
    text-transform: uppercase;
    margin: 20px 0 5px 0;
    color: #1a1a1a;
}

.main-content > .nothing-to-see {
    margin: 20px 15px 10px 30px;
    text-align: center;
}

.clickable {
    cursor: pointer;
}

.tenant-logo-preview {
    margin: 10px;
}

.table .actions {
    text-align: right;
}
.table .actions > button {
    padding: 3px 10px;
    margin: 0px;
    border: none;
    background-color: transparent;
    margin: 0;
}
.table .actions > button:hover {
    background-color: #ffffff;
    border: none;
}

.modal.modal-wide .modal-dialog {
    width: 1000px;
}

.modal-dialog.modal-wide {
    width: 1000px;
}

.modal-dialog.modal-maxheight {
    max-height: 724px;
    overflow-y: auto;
}

