:root {
    --pf-v5-c-form__label-required--Color: #C9190BFF;
    --pf-v5-global--FontFamily--heading: Lato, sans-serif;
    --pf-v5-global--FontFamily--text: Lato, sans-serif;
    --pf-v5-global--BackgroundColor--300: #FFFFFF;
    --dv-form-control-color: #02303A;
    --dv-default-icon-size: 1.38em;
    font-family: var(--pf-v5-global--FontFamily--text);
    font-size: .875em;
    color: #363636;
}

@font-face {
    font-family: 'Lato';
    font-style: normal;
    src: url('../fonts/Lato-Regular.woff');
}

@font-face {
    font-family: 'Lato';
    font-weight: 500;
    src: url('../fonts/Lato-Semibold.woff');
}

h1, h2, h3, h4, h5 {
    display: inline-block;
    margin: 0;
    font-weight: 500;
}

h1 {
    display: block;
    font-size: 2em;
    margin-bottom: 1em;
}

input {
    padding: 8px;
}

.login-pf-page {
    padding-top: 0
}

.login-pf {
    background: #fff;
}

/* Body */
.login-pf body {
    background: #fff;
    font-family: var(--pf-v5-global--FontFamily--text);
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

#kc-header {
    background-image: linear-gradient(135deg, #069fce 0, #51cbbf 100%);
    margin-bottom: 60px;
    height: 50px;
    display: flex;
    align-items: center;
}

#kc-header-wrapper {
    background-image: url(../img/gradle-enterprise-logo.svg);
    background-repeat: no-repeat;
    margin-left: 26px;
    width: 151px;
    height: 24px;
    display: inline-block;
    padding: 0;
    left: 0;
    transform: none;

    /* Hide the 'Develocity' text. */
    font-size: 0;
}

#kc-header-wrapper a {
    display: inline-block;
    width: inherit;
    height: inherit;
}

/*@media (max-width: 767px) {*/
@media (max-width: 1400px) {
    --pf-v5-c-title--m-3xl--FontSize: 1em;

    #kc-header {
        padding: 0;
    }

    #kc-form-wrapper {
        padding-right: 0;
        border: none;
    }

    #kc-social-providers {
        margin-top: 0.5em;
    }
}

/* Title */
.pf-v5-c-title {
    padding: 0 0 40px;
    margin: 0;
    text-align: center;
}

#kc-content-wrapper .row {
    margin-left: -20px;
    margin-right: -20px;
}

/* Card */
.pf-v5-c-login__container {
    padding: 40px;
    margin: 0 auto;
    border:1px solid #ddd;
    border-radius:4px;
    box-shadow: 0 2px 4px 0 rgba(0, 0, 0, 0.15);
    max-width: 800px;
    display: unset;
}

.pf-v5-c-login {
    align-items: start;
    --pf-v5-c-login__header--c-brand--xl--MarginBottom: 0em;
    --pf-v5-c-login__header--c-brand--MarginBottom: 0em;
    --pf-v5-c-login__header--xl--MarginTop: 0em;
    --pf-v5-c-login__header--xl--MarginBottom: 0em;
    --pf-v5-c-login__header--MarginTop: 0em;
    --pf-v5-c-login__header--MarginBottom: 0em;
}

.pf-v5-c-login__main-body {
    background: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding: unset;
}

.pf-v5-c-login__main-header {
    padding-block: unset;
    border: none;
}

/*
Gets rid of the large gap at the bottom of the login dialog
 */
.pf-v5-c-login__main>:last-child:not(.pf-v5-c-login__main-footer) {
    padding-bottom: 0.3rem;
}


.pf-v5-c-form__label {
    font-family: var(--pf-v5-global--FontFamily--text);
    color: var(--dv-form-control-color);
    font-weight: 400;
}

.pf-v5-c-form__label-text {
    font-family: var(--pf-v5-global--FontFamily--text);
    color: var(--dv-form-control-color);
    font-weight: 400;
}

.pf-v5-c-login__main {
    box-shadow: unset;
    margin: unset;
}

.pf-v5-c-form-control>:is(input,select,textarea) {
    color: var(--dv-form-control-color);
}

.pf-v5-c-form-control {
    width: 100%;
    height: 36px;
    border: 1px solid #D6D9DB;
    border-radius: 3px;
    color: var(--dv-form-control-color);
    font-weight: 400;
    background-color: #fff !important;
    font-family: var(--pf-v5-global--FontFamily--text);
}

.pf-v5-l-flex {
    padding: unset;
}
.pf-v5-form-control:hover, .pf-v5-form-control:focus {
    border: 1px solid #3cafe6;
    box-shadow: none;
    outline: 0;
    padding-bottom: 0;
}

/* Login screen inline feedback */
.pf-m-warning .kc-feedback-text, .pf-m-danger .kc-feedback-text {
    display: flex;
    align-items: center;
}

/* Social links */
.kc-social-gray {
    color: var(--dv-form-control-color);
}


.login-pf-social-link {
    display: contents;
    text-align: center;
    min-width: 100px;
    border: none;
}

.pf-v5-c-login__main-footer-links {
    display: block;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

a:hover.pf-v5-c-login__main-footer-links-item-link {
    text-decoration: none;
    color: white;
}

.pf-v5-c-login__main-footer-links a {
    padding: 13px;
    border-radius: 3px;
    color: #fff;
    font-family: var(--pf-v5-global--FontFamily--text);
    font-weight: 500;
    background: linear-gradient(135deg, #069FCE 0%, #51CBBF 100%);
    width: 100%;
    display: block;
}


.login-pf-page .login-pf-social-link a .pf-v5-c-login__main-footer-links {
    padding: 13px;
    display: block;
    border-radius: 3px;
    color: #fff;
    font-family: Lato, sans-serif;
    font-weight: 500;
    background: linear-gradient(135deg, #069FCE 0%, #51CBBF 100%);
}

.pf-v5-form__label {
    margin-bottom: 5px;
}

.pf-v5-form__label-text {
    color: var(--dv-form-control-color);
    font-weight: 400;
}

.pf-v5-c-button.pf-m-control {
    padding: 0;
}

.pf-v5-c-button {
    display: inline-block;
    padding: 13px;
    font-family: var(--pf-v5-global--FontFamily--text);
    font-weight: 500;
    border-radius: 3px;
    text-align: center;
    min-width: 100px;
    border: none;
    box-shadow: none;
}

.pf-v5-c-button.pf-m-primary {
    color: #fff;
    background: linear-gradient(135deg, #069FCE 0%, #51CBBF 100%);
    cursor: pointer;
}

.pf-v5-button.pf-m-primary:hover {
    background: linear-gradient(135deg, #06aadd 0%, #5dcfc3 100%);
    color: #fff;
    cursor: pointer;
}

/* Auth providers */
.login-pf-page .login-pf-social-link {
    margin-bottom: 15px;
    cursor: pointer;
}

/* Sizes and paddings */
/*.alert-error, .alert-warning {*/
.pf-m-danger, .pf-m-warning {
    background-color: #ffffff;
    border-radius: 3px;
    margin-bottom: 20px;
    padding: 11px 14px;
    display: flex;
    gap: 10px;
}

/* Alerts */
.alert-error, .pf-m-danger {
    border: 1px solid #DE0000;
    color: #DE0000;
}

.alert-warning, .pf-m-warning {
    border: 1px solid #ec7a08;
    color: #ec7a08;
}

.login-pf-page .login-pf-social-section:first-of-type {
    padding-right: 39px;
    border-right: 1px solid #d1d1d1;
    margin-right: -1px;
}

#kc-content-wrapper, #kc-form-wrapper {
    margin-top: 0;
}

#kc-info-wrapper {
    background-color: transparent;
}

#kc-form-buttons {
    margin-top: 40px;
}

.kc-social-links {
    margin-top: 0;
}

.pf-v5-c-alert__icon {
    display: inline;
    font-size: var(--dv-default-icon-size);
    padding: 0;
}

.alert-warning .pf-v5-c-alert__icon {
    font-size: var(--dv-default-icon-size);
}

/* Reduce the real-estate taken up by the show-password button */
.dv-show-password.pf-m-control {
    min-width: unset;
    padding-left: 0.6em;
    padding-right: 0.6em;
}
