@import url(../opensans/opensans.css);
@import url(../notosansjp/notosansjp.css);

.login-pf {
    height: 100%;
    width: 100%;
}

.login-pf body {
    background: white none;
    background-image: url('../img/background.png');
    font-family: 'Open Sans', Helvetica Neue, "Noto Sans JP", sans-serif;
    font-size: 13pt;
    margin: 0;
}



#kc-content {
    padding-right: 0px;
}

#kc-content-wrapper {
    width: 100%;
    padding-right: 0px;
}

.login-pf .control-label {
    color: black;
    padding: 0;
}

.login-pf .form-control {
    color: black;
    width: 100%;
    margin: 0;
}

/*
#kc-logo {
    display: inline-block;
}

#kc-logo-wrapper {
    background-image: url("../img/Cloud.png");
    background-repeat: no-repeat;
    background-size: 25em 16.79em;
    height: 16.79em;
    width: 25em; 
}
*/


#kc-ucs-logo {
    display: inline-block;
    width: 1.8em;
    height: 1.3em;
    background-image: url("../img/ucs-logo.svg");
    background-repeat: no-repeat;
    background-size: 1.8em 1.3em;
    position: relative;
    top: 0.2em;
}

/*
#kc-container {
    width: 50em;
    position: absolute;
    top: calc(50% - 0.6em);
    left: 50%;
    transform: translate(-50%, -50%);
}
*/

#kc-container.otp-settings  {
    top: calc(50% - 3.94em);
}

#kc-container table {
    width: 100%;
    border-spacing: 0px;
}

#logo-cell {
    width: 29em;
    padding: 0px;
    padding-bottom: 2.08em;
    vertical-align: bottom;
    text-align: right;
    font-size: 13pt;
}

#input-cell {
    vertical-align: bottom;
    padding: 0px;
    /* padding-right: 3.5em; */
}

.totp-settings #logo-cell {
    vertical-align: bottom;
    padding-bottom: 0;
}

.totp-settings #input-cell {
    padding-bottom: 0;
    padding-left: 1.2em;
    vertical-align: bottom;
}
/* TEST 2
.otp-settings #logo-cell {
    vertical-align: middle;
    padding-bottom: 2.55em;
}

.otp-settings #input-cell {
    padding-bottom: 5.9em;
    padding-left: 10px;
}
*/

#kc-header {
    /*
    font-size: 130%;
    font-weight: 400;
    padding-top: 0.5ex;
    position: static;
    float: none;
    */
    display: none;
}

#kc-locale {
    /* display: none !important; */
    visibility: hidden;
    position: absolute;
    top: 0;
}

.kc-logo {
    /* 
    font-weight: 600;
    font-size: 110%;
    font-style: normal;
    color: blue;*/
    color: rgba(0,89,122,0.8);
    
}

/*
#kc-header-wrapper:before {
    display: block;
    width: 100%;
    height: 80px;
    margin-top: 1ex;
    background-image: url("../img/ddis64.png");
    background-repeat: no-repeat;
    background-position: top center;
    content: " ";
    text-align: center;
}
*/

#kc-header-wrapper {
    position: static;
    float: none;
    text-align: center;
    text-transform: uppercase;
    margin-top: 1em;
}

#kc-form {
    float: none;
    padding: 0;
    padding-left: 1em;
    padding-right: 1em;
    /*

    margin-left: 1.2em;
    margin-right: 1.2em;
    */
}



/*
#kc-form-login {
    padding-right: 3.5em;
}
*/

#kc-form-login .form-group {
    display: block;
    padding: 0;
    margin: 0;
    font-size: 13pt;
    /* border: solid green 1px; */
    height: 2em;
}

#kc-form-login .form-group.ux-input-wrapper {
    position: relative;
    display: block;
    margin-top: 0.4em;
    height: 2.7em;
    overflow: visible !important;
    font-size: 11.5pt;
    font-family: 'Open Sans', Helvetica Neue, "Noto Sans JP", sans-serif;
    border: solid gray 1px;
    border-radius: 0.5ex;
    -webkit-border-radius: 0.5ex;
    opacity: 1;
    background-color: white;
}

#kc-form-login .form-group.ux-input-wrapper.focus-within {
    border: solid #4180B8 1px;
    box-shadow: inset 0px 0px 2px #4180B8;
    -webkit-box-shadow: intset 0px 0px 2px #4180B8;
}    

#kc-form-login .ux-input-label {
    font-size: 71%;
    position: absolute;
    top: 0.15em;
    left: 4px;
    color: #101010;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    visibility: hidden;
}


#kc-otp-login-form {
    padding-bottom: 2.08em;
}

#kc-otp-login-form .ux-input-label {
    padding-bottom: 0.3em;
}

#kc-otp-login-form .control-label {
    
    font-size: 11.5pt;
    font-family: 'Open Sans', Helvetica Neue, "Noto Sans JP", sans-serif;
    color: #333333;
    background-color: white;
    /*
    display: none;
    */
}

#kc-totp-settings-form #kc-form-buttons,
#kc-totp-login-form #kc-form-buttons {
    display: none;
}

.totp-settings #kc-content {
    border: solid #51a8dd 8px;
    border-radius: 20px 20px;
    -webkit-box-shadow: 0 0 0 2px rgba(60, 115, 170, 1);
            box-shadow: 0 0 0 2px rgba(60, 115, 170, 1);
    color: #808080;
    background-color: #51a8dd;
    font-family: 'Open Sans', Helvetica Neue, "Noto Sans JP", sans-serif;
    font-size: 14px;
}

.totp-settings #kc-content-wrapper {
    background-color: #51a8dd;
    width: calc(100% - 4px);
}

.totp-settings #kc-form {
    width: 100%;
    border: solid #51a8dd 2px;
    background-color: white;
    border-radius: 0 0 13px 13px;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
}

.otp-img-prompt, .otp-config-prompt {
    margin-block-end: 0;
}

.otp-unable-scan {
    margin-block-start: 0;
    margin-block-end: 0.4em;
}

#kc-totp-settings-title {
    width: calc(100% + 2px);
    position: relative;
    left: -1px;
    text-align: center;
    padding-top: 0;
    padding-bottom: 0.6em;
    font-size: 20px;
    line-height: 0.9;
    color: white;
    background-color: #51a8dd;
}

.totp-settings .alert-warning {
    display: none;
    /*
    text-align: center;
    padding-top: 0;
    padding-bottom: 0.6em;
    font-size: 20px;
    line-height: 0.9;
    color: white;
    */
}

.totp-settings .ux-input-field {
    text-align: center;
}

.totp-settings .form-group {
    padding-bottom: 0.5em;
}

#kc-totp-settings {
    list-style-type: disc;
    padding-inline-start: 30px;
}
/*
#kc-totp-settings li p {
    
    box-shadow: -8px 0 0 0 gray;
    padding-left: 5px;
    position: relative;
    left: -5px;
}
*/

.ux-input {
    display: block;
    margin-top: 0.9em;
    width: 100%;
    border: none !important;
    padding: 0;
}

input[type="text"].ux-input,
input[type="password"].ux-input {
    padding: 0;
    margin: 0;
    height: 1.3em;
    font-size: 11.5pt;
    font-family: 'Open Sans', Helvetica Neue, "Noto Sans JP", sans-serif;
    width: calc(100% - 2.9em);
}

input[type="text"].ux-input:focus,
input[type="password"].ux-input:focus {
    outline: none !important;
}


input.ux-input {
  line-height: normal;
}

.ux-password {
    display: block;
    width: 100%;
    margin-top: 0.7em;
}



.ux-options {
    display: none;
}

.ux-buttons {
/*
    padding: 0.5ex;
    text-align: right;
    padding-right: 1ex;
*/
    width: 100%;
    text-align: right;
}

.alert-error {
    border: solid red 1px;
    width: 100%;
    text-align: center;
    margin-left: 0em;
    margin-right: 2em;
    position: absolute;
    top: 21em;
    left: 0;
    background: #FDFDFD none;
    font-family: 'Open Sans', Helvetica Neue, "Noto Sans JP", sans-serif;
    padding-top: 1ex;
    padding-bottom: 1ex;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.totp-settings .alert-error {
    color: black;
    font-size: 13pt;
    top: 26em;
}

.btn {
    /*
    margin-top: 0.8ex;
    margin: 0 auto;
    background: rgb(0,40,102);
    background: -moz-linear-gradient(top, #3A8ADB 0%, #002866 100%);
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#3A8ADB), color-stop(100%,#002866));

    box-shadow: inset 0px 0px 4px #3A8ADB;
    -webkit-box-shadow: inset 0px 0px 4px #3A8ADB;
    border: 1px solid #1879DB;
    border-radius: 6px;
    font-size: 12pt;
    font-weight: normal;
    font-family: 'Open Sans', Helvetica Neue, "Noto Sans JP", sans-serif;
    color: white;
    */
    background-image: url("../img/arrow.svg");
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 2.8em 2.26em;
    position: relative;
    top: -2.8em;
    right: 0.4em;
}

button {
  overflow: visible;
}

button,
select {
  text-transform: none;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
  border: none;
    /*
  -webkit-appearance: button;
  cursor: pointer;
  width: 100%;
  height: 2.5em;
  padding: 0;
  */
  width: 2.85em;
  height: 2.4em;
  background-color: transparent;
  cursor: pointer;
}

button[disabled],
html input[disabled] {
  cursor: default;
}

button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}
    
input[type="submit"]:disabled {
    /*
  background: #8DC1F0;
  cursor: not-allowed;
  border: solid #8DC1F0 1px;
  box-shadow: inset 0px 0px 4px #8DC1F0;
  -webkit-box-shadow: inset 0px 0px 4px #8DC1F0;
  */
  visibility: hidden;
}

/* OTP */

ol#kc-totp-settings {
    margin: 0;
    padding-left: 20px;
}

ul#kc-totp-supported-apps {
  margin-bottom: 10px;
}

#kc-totp-secret-qr-code {
    max-width:150px;
    max-height:150px;
}

#kc-totp-secret-key {
    background-color: #fff;
    color: #333333;
    font-size: 14px;
    padding: 0;
}

.ux-hide {
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 0;
}

#kc-copyright-wrapper {
    /* 
    position: absolute; 
    left: 0;
    bottom: 0;
    */
    width: 100%;
    height: 28px;
    background: transparent none;
    color: #555555;
    text-align: center;
    z-index: 25;
    font-family: 'Open Sans', 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 13px;
}

#kc-copyright {
    white-space: nowrap;
}

/* small screens */
.ux-body {
    display: grid;
    grid-template-rows: 5fr 206px 134px 10fr 30px;
    grid-template-areas:
	"header"
	"logo"
	"entry"
	"sidebot"
	"footer";
    height: 100%;
    width: 100%;
}

.ux-body.totp-settings {
    grid-template-rows: 1fr 120px 415px 10fr 30px;
}

#kc-container-wrapper {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

#kc-form-wrapper {
    width: calc(100% - 0.5em);
}

.totp-settings #kc-form-wrapper {
    width: 100%;
}

.totp-settings #kc-container-wrapper {
    width: calc(100% - 2em);
    left: 1em;
    bottom: initial;
    /* bottom: 12px; */
}

#kc-logo {
    display: inline-block;
}

#kc-logo-wrapper {
    background-image: url("../img/Cloud.png");
    background-repeat: no-repeat;
    background-size: 300px 201.4px;
    height: 201.4px;
    width: 300px; 
}

.ux-body.totp-settings #kc-logo-wrapper {
    background-size: 170px 115px;
    height: 115px;
    width: 170px; 
}


#kc-form-login .ux-input-field {
    position: absolute;
    top: 0.7em;
    left: 4px;
    right: 4px;
}

#kc-otp-login-form .ux-input-field {
    /*
    position: absolute;
    top: 0.7em;
    left: 4px;
    right: 4px;
    */
    text-align: center;
}

@media only screen and (min-width: 320px) {
    #kc-copyright-wrapper {
        font-size: 11px;
    }

    #kc-logo-wrapper {
        background-size: 280px 188px;
        height: 188px;
        width: 280px;
    }
}

@media only screen and (min-width: 320px) and (max-height: 568px) {

    .ux-body.totp-settings {
	grid-template-rows: 1fr 55px 415px 10fr 30px;
    }

    .ux-body.totp-settings #kc-logo-wrapper {
        background-size: 80px 53.7px;
        height: 53.7px;
        width: 80px;
    }
    
}

/* small-medium screens: phones horizontal */
@media only screen and (min-width: 568px) {
    .ux-body {
	display: grid;
	grid-gap: 0 0;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 10fr 240px 11fr 30px;
	grid-template-areas:
	    "header header"
	    "logo entry"
	    "sidebot sidebot"
	    "footer footer";
	height: 100%;
	overflow: hidden;
    }

    #kc-logo {
	display: inline-block;
	position: absolute;
	bottom: 32px;
	right: 0;
    }

    #kc-logo-wrapper {
	background-image: url("../img/Cloud.png");
	background-repeat: no-repeat;
	background-size: 300px 201.4px;
	height: 201.4px;
	width: 300px; 
    }

    #kc-container-wrapper {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 350px;
    }

    #kc-form-login {
	padding-right: 3.5em;
    }

    #kc-form-login .ux-input-field {
	position: absolute;
	top: 0.7em;
	left: 4px;
	right: 4px;
    }

    #kc-otp-login-form .ux-input-field {
	text-align: left;
    }

}


@media only screen and (min-width: 568px) and (max-height: 420px) {
    .ux-body {
	grid-template-rows: 1fr 240px 11fr 30px;
    }

    .ux-body.totp-settings {
	grid-template-rows: 1fr 240px 11fr 30px;
    }
    .ux-body.totp-settings #kc-logo {
	bottom: -55px;
    }
    
    .ux-body.totp-settings #kc-logo-wrapper {
	background-size: 300px 201.4px;
	height: 201.4px;
	width: 300px; 
    }

    .totp-settings #kc-container-wrapper {
	width: calc(100% - 2em);
    }
    /*
    .ux-body.totp-settings #kc-copyright-wrapper {
	text-align: left;
	padding-left: 2em;
    }
   */

    #kc-totp-settings-title {
	position: absolute;
	left: -330px;
	background-color: transparent;
	color: black;
	font-weight: bold;
	white-space: nowrap;
    }

    
    .totp-settings #kc-form {
	border-radius: 13px;
    }

    .totp-settings #kc-form ul {
	margin-block-start: 0.1em;
	margin-block-end: 0.3em;
	
    }

    .totp-settings #kc-form p {
	margin-block-start: 0.5em;
	margin-block-end: 0.1em;
	line-height: 1.05;
    }


    ux-body.totp-settings #kc-logo-wrapper {
	background-size: 300px 201.4px;
	height: 201.4px;
	width: 300px; 
    }

}

@media only screen and (min-width: 568px) and (max-height: 325px) {
    .ux-body {
	grid-template-rows: 1fr 240px 11fr 30px;
    }

    .ux-body.totp-settings {
	grid-template-rows: 1fr 240px 11fr 40px;
	grid-template-columns: 2fr 3fr;
    }
    
    
    #kc-logo-wrapper {
	background-size: 200px 134.3px;
	height: 134.3px;
	width: 200px; 
    }

    .ux-body.totp-settings #kc-logo-wrapper {
	background-size: 200px 134.3px;
	height: 134.3px;
	width: 200px; 
    }

    #kc-logo {
	bottom: 40px;
    }

    .ux-body.totp-settings #kc-logo {
	bottom: 40px;
    }

    .ux-body.totp-settings #kc-container-wrapper {
	width: calc(100% - 2em);
    }

    .ux-body.totp-settings #kc-copyright-wrapper {
	text-align: left;
	width: 15em;
	padding-left: 2em;
    }

    .ux-body.totp-settings #kc-copyright {
	white-space: normal;
    }

    #kc-totp-settings-title {
	position: absolute;
	left: -235px;
	background-color: transparent;
	color: black;
	font-weight: bold;
	white-space: normal;
	width: 11em;
	text-align: right;
    }

    .totp-settings #kc-form {
	border-radius: 13px;
    }

    .totp-settings #kc-form ul {
	margin-block-start: 0.1em;
	margin-block-end: 0.3em;
	
    }

    .totp-settings #kc-form p {
	margin-block-start: 0.5em;
	margin-block-end: 0.1em;
	line-height: 1.05;
    }


    ux-body.totp-settings #kc-logo-wrapper {
	background-size: 300px 201.4px;
	height: 201.4px;
	width: 300px; 
    }

}


/* medium screens: iPad */
@media only screen and (min-width: 768px) {
    .ux-body {
	display: grid;
	grid-gap: 0 0;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 8fr 270px 11fr 30px;
	grid-template-areas:
	    "header header"
	    "logo entry"
	    "sidebot sidebot"
	    "footer footer";
	height: 100%;
    }

    .ux-body.totp-settings {
	grid-template-rows: 8fr 270px 11fr 30px;
    }


    #kc-logo {
	display: inline-block;
	position: absolute;
	bottom: 32px;
	right: 0;
    }

    #kc-logo-wrapper {
	background-image: url("../img/Cloud.png");
	background-repeat: no-repeat;
	background-size: 350px 235px;
	height: 235px;
	width: 350px; 
    }

    .ux-body.totp-settings #kc-logo-wrapper {
	background-size: 350px 235px;
	height: 235px;
	width: 350px; 
    }
    
    #kc-container-wrapper {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 350px;
    }

    .totp-settings #kc-container-wrapper {
	width: 330px;
	left: 1em;
	bottom: 12px;
    }

    #kc-form-login {
	padding-right: 3.5em;
    }

    #kc-form-login .ux-input-field {
	position: absolute;
	top: 0.7em;
	left: 4px;
	right: 4px;
    }

    #kc-otp-login-form .ux-input-field {
	text-align: left;
    }

}


@media only screen and (min-width: 768px) and (max-height: 420px) {
    .ux-body {
	grid-template-rows: 1fr 270px 13fr 30px;
    }

    .ux-body.totp-settings {
	grid-template-rows: 8fr 270px 1fr 30px;
    }

    #kc-logo-wrapper {
	background-size: 300px 201.4px;
	height: 201.4px;
	width: 300px; 
    }

    .totp-settings #kc-container-wrapper {
	width: calc(100% - 2em);
    }

    #kc-totp-settings-title {
	position: absolute;
	left: -355px;
	background-color: transparent;
	color: black;
	font-weight: bold;
    }

    .totp-settings #kc-form {
	border-radius: 13px;
    }

    .totp-settings #kc-form ul {
	margin-block-start: 0.1em;
	margin-block-end: 0.3em;
	
    }

    .totp-settings #kc-form p {
	margin-block-start: 0.5em;
	margin-block-end: 0.1em;
	line-height: 1.05;
    }


    ux-body.totp-settings #kc-logo-wrapper {
	background-size: 300px 201.4px;
	height: 201.4px;
	width: 300px; 
    }

    .ux-body.totp-settings #kc-logo {
	bottom: 15px;
    }

}

/* large screens */
@media only screen and (min-width: 1200px) {
    .ux-body {
	display: grid;
	grid-gap: 0 0;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 10fr 330px 11fr 30px;
	grid-template-areas:
	    "header header"
	    "logo entry"
	    "sidebot sidebot"
	    "footer footer";
	height: 100%;
    }

    #kc-logo {
	display: inline-block;
	position: absolute;
	bottom: 32px;
	right: 0;
    }

    #kc-logo-wrapper {
	background-image: url("../img/Cloud.png");
	background-repeat: no-repeat;
	background-size: 25em 16.79em;
	height: 16.79em;
	width: 25em; 
    }

    #kc-container-wrapper {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 433px;
    }

    #kc-form-login {
	padding-right: 3.5em;
    }

    #kc-form-login .ux-input-field {
	position: absolute;
	top: 0.7em;
	left: 4px;
	right: 4px;
    }
    #kc-otp-login-form .ux-input-field {
	text-align: left;
    }

}

@media only screen and (min-width: 1200px) and (max-height: 468px) {

    #kc-logo-wrapper {
	background-size: 350px 235px;
	height: 235px;
	width: 350px; 
    }
}

header {
    grid-area: header;
}

logo {
    grid-area: logo;
    position: relative;
    text-align: center;
}

entry {
    grid-area: entry;
    position: relative;
    width: 100%;
}

sidebot {
    grid-area: sidebot;
}

footer {
    grid-area: footer;
}

