html {
	font-size: 16px;
}

form {
    height: 100%;
}

body {
    background-color: hsl(180, 4%, 95%);
	color: hsl(200, 19%, 18%);
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
    font-size: 0.875rem;
    line-height: 1.5;
	margin: 0;
    padding: 0;   
}

.container {
    margin-right: auto;
	margin-left: auto;
	margin-top: calc(50vh - 168px); /* 168px = metade da altura */
	height: 336px;
	width: 700px;
}

h1 {
	font-size: 2.5rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    margin-top: 0;
	display: inline-block;
}

.userPhoto {
    float: right;
    background: url('../img/user.png') no-repeat center center;
    height: 40px;
    width: 40px;
	background-color: transparent;
	border: 1px solid hsl(198, 16%, 84%);
    border-radius: 50%;
}

.sistema.container {
	margin-top: calc(50vh - 190px); /* 190px = metade da altura */
	height: 380px;
}

.text-muted {
    color: hsl(200, 15%, 73%) !important;
}

.logo {    
    background-image: url("../img/fundofs2.png");
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
    /*max-width: 300px;*/
    width: 100%;
    margin: auto;
}

.card {
	background-color: hsl(0, 0%, 100%);
	padding: 1.3rem !important;
	float: left;
    box-sizing: border-box;
}

.card ::after {
    clear: both;
}

.card-logo {
	width: 300px;
	/*background-color: hsl(208, 56%, 48%);*/
	border: 1px solid hsl(208, 56%, 48%);
	height: 100%;
	padding: 0 !important;
}

.card-login {
	width: 400px;
	border: 1px solid hsl(198, 16%, 84%);
	height: 100%;
}

.card-block {
    padding: 1.25rem;
}

*, *::after, *::before {
    box-sizing: inherit;
}

.form-control {
    background-clip: padding-box;
    background-color: hsl(0, 0%, 100%);
    border: 1px solid hsla(0, 0%, 0%, 0.15);
    color: hsl(200, 18%, 46%);
    font-size: 0.875rem;
    line-height: 1.25;
    padding: 0.5rem 0.75rem;
    transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;
    width: 100%;
}

.form-control.error {
    border-color: hsl(0, 100%, 50%);
}

.form-control:focus {
    border-color: hsl(207, 75%, 66%);
}

.input-group-addon:not(:last-child) {
    border-right: 0 none;
}

.input-group-addon {
    background-color: hsl(198, 16%, 84%);
    border: 1px solid hsla(0, 0%, 0%, 0.15);
    color: hsl(200, 18%, 46%);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.25;
    margin-bottom: 0;
    padding: 0.5rem 0.75rem;
    text-align: center;
}

.input-group-addon {
    width: 1%;
	vertical-align: middle;
}

.input-group .form-control, .input-group-addon {
    display: table-cell;
}

.input-group {
    border-collapse: separate;
    display: table;
    width: 100%;
}

.input-group {
	margin-bottom: 1rem !important;    
}

.btn {
    border: 1px solid hsl(208, 56%, 48%);
    cursor: pointer;
    transition: all 0.2s ease-in-out 0s;
    color: hsl(0, 0%, 100%);
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    text-align: center;
}

.btn-primary {
    background-color: hsl(208, 56%, 48%);

}
.btn-primary:hover {
    background-color: hsl(208, 56%, 40%);
}


/* Keycloack CSS */
#kc-content {
    position: relative;
}

#kc-content-wrapper {
    overflow-y: hidden;
}

#kc-info {
    padding-bottom: 200px;
    margin-bottom: -200px;
}

.messages {
    width: 700px;
    margin: 10px auto;
}

.kc-feedback-text {
    padding: 10px 30px;
}

.alert [class^="icon"] {
    display: inline-block;
    font-size: 22pt;
    position: absolute;
    top: 8px;
    left: 10px; 
    bottom: 5px;
    height: 30px;  
}

.alert-error {
    background-color: hsla(354, 100%, 80%, 0.31);
    border: 1px solid #cc0000;
    color: #cc0000;
    padding: 10px 0;
    border-radius: 2px; 
}

@media (max-width: 700px) {
	.container {
		width: 100%;
		margin-top: calc(50vh - 168px);
	}	
    
    .btn {
        width: 100%;
    }

	.sistema.container {
		margin-top: calc(50vh - 290px); /* 290px = (altura container + altura do .card-logo)/2 */
	}
    
    .card {
        padding: 5px !important;
    }

	.card-logo {
        width: 100%;
        /*height: 30px;*/
	height: 50px;
	padding: 0 !important;
	}
    .card-login {
		width: 100%;
    }	
    
    .messages {
        width: 100%;
    }
}
