/*
	Copyright (c) 2015-2018 Krzysztof Grochocki

	This file is part of Ejabberd Account Tools.

	Ejabberd Account Tools is free software: you can redistribute it and/or modify
	it under the terms of the GNU General Public License as published by
	the Free Software Foundation; either version 3, or
	(at your option) any later version.

	Ejabberd Account Tools 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 General Public License for more details.

	You should have received a copy of the GNU General Public License
	along with GNU Radio. If not, see <http://www.gnu.org/licenses/>.
*/

/* Form loader */
.loader{
border:6px solid #38AAD5;
border-top:6px solid #F3F3F3;
border-radius:50%;
width:60px;
height:60px;
margin:0 auto;
animation:spin 0.8s linear infinite;
}
/* Blocks style */
.ejabat #login, .ejabat #host, .ejabat #password, .ejabat #password_retyped, .ejabat #email{
margin-bottom:1.5em;
display:block;
max-width:302px;
width:100%;
}
.ejabat .checkbox{
position:relative;
margin:1em 0;
}
.ejabat .checkbox input{
cursor:pointer;
}
.ejabat .checkbox label{
cursor:pointer;
padding-left:26px;
}
.ejabat .checkbox span{
background-color:#EFEFEF;
padding:4px;
}
#ejabat_webpresence_logout{
margin-bottom:1em;
}
/* Inputs style */
.ejabat input[type="text"], .ejabat input[type="password"], .ejabat input[type="email"], .ejabat select{
width:100%;
}
.ejabat input[type="checkbox"]{
position:absolute;
margin-left:-20px;
margin-top:4px;
}
/* Invalid input */
input.invalid{
border:1px solid #f00 !important;
}
div.invalid{
border:1px solid #f00 !important;
display:inline-block;
margin:-1px;
}
/* Tip */
.tip{
position:absolute;
font-size:1em;
display:flex;
align-items:center;
margin:0 4px;
}
.tip:not(:empty){
margin-bottom:-1.5em;
}
.recaptcha.tip:not(:empty){
position:inherit;
margin:-5px 4px 0;
}
.tip.invalid{
color:#f00;
}
.tip .spinner{
border:1px solid #38AAD5;
border-top:1px solid #F3F3F3;
border-radius:50%;
width:10px;
height:10px;
margin-right:4px;
animation:spin 0.8s linear infinite;
}
/* Password strength */
input.too-weak, input.very-weak{
background:linear-gradient(90deg, #FFA0A0 25%, #FFF 25%) !important;
border-color:#F04040 !important;
}
input.weak{
background:linear-gradient(90deg, #FFB78C 50%, #FFF 50%) !important;
border-color:#FF853C !important;
}
input.good{
background:linear-gradient(90deg, #FFEC8B 75%, #FFF 75%) !important;
}
input.strong{
background-color:#C3FF88 !important;
}
/* Submit */
#submit{
display:flex;
align-items:center;
}
#submit .spinner{
border:2px solid #38AAD5;
border-top:2px solid #F3F3F3;
border-radius:50%;
width:20px;
height:20px;
margin-left:10px;
animation:spin 0.8s linear infinite;
}
/* Submit as link */
input[type="submit"].link_submit{
background:none;
border:none;
padding:0;
margin:0;
color:inherit;
}
input[type="submit"].link_submit:hover{
background:none;
border:none;
color:inherit;
}
/* Response */
#response{
margin-top:1.5em;
padding:1em 1.5em;
}
.ejabat-form-success{
border:1px solid #D6E9C6;
background-color:#DFF0D8;
color:#3C763D;
}
.ejabat-form-error{
border:1px solid #F7D8DD;
background-color:#FBEEED;
color:#D9534F;
}
.ejabat-form-blocked{
border:1px solid #FAEBCC;
background-color:#FCF8E3;
color:#8A6D3B;
}
.ejabat-display-none{
display:none;
}
/* Information */
.ejabat-info{
display:inline-block;
margin-bottom:1.5em;
padding:1em 1.5em;
}
.ejabat-no-margin{
margin:0;
}
/* Spinner animation */
@keyframes spin{
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}