/* Buckeye Broadband Login Theme */

body {
    background-color: #e8e8e8 !important;
    font-family: "Segoe UI", Roboto, Arial, "Helvetica Neue", "Helvetica", sans-serif;
}

.error {
    background-color: rgb(237, 218, 217);
    color: rgb(163, 19, 0);
    box-sizing: border-box;
    margin: 0;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    -webkit-font-smoothing: antialiased;
    text-transform: none;
    font-size: 15px;
    border-radius: 0 0 2px 2px;
    animation: 0.2s ease 0s 1 normal none running fade-down-in;
    font-family: proxima-nova, sans-serif !important;
    padding: 15px !important;
    display: block;
}

.login-pf body {
    background-color: #e8e8e8 !important;
    background-image: none !important;
}

.login-pf-page {
    background-color: #e8e8e8 !important;
}

#kc-header {
    display: none;
}

.card-pf {
    background: white;
    padding: 50px 40px 40px 40px;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    max-width: 450px;
    margin: 80px auto 0 auto;
}

/* Logo styling */
#kc-header-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

#kc-header-wrapper .kc-logo-text {
    background-image: url('../img/buckeye-logo.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 80px;
    text-indent: -9999px;
    display: block;
    margin: 0 auto;
}

/* Sign On header */
#kc-form h1, #kc-form-login h1 {
    font-size: 24px;
    font-weight: 600;
    color: #003a70;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #003a70;
    text-align: left;
}

.login-pf-page .card-pf h1 {
    color: #003a70;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Form styling */
.form-group {
    margin-bottom: 20px;
}

label {
    color: rgb(121, 128, 135);
    font-size: 15px;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    line-height: 1em;
}

.form-control {
    height: 45px;
    border: 1px solid #002e6c;
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #003a70;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 58, 112, 0.1);
}

.btn-primary {
    box-sizing: border-box;
    margin: 0px;
    min-width: 0px;
    appearance: none;
    text-align: center;
    line-height: inherit;
    text-decoration: none;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    font-size: 15px;
    font-family: proxima-nova, helvetica, arial, sans-serif;
    color: rgb(255, 255, 255);
    background-color: rgb(0, 46, 108) !important;
    background-image: none !important;
    border: 1px solid rgb(0, 46, 108);
    border-radius: 2px;
    display: block;
    padding: 9px;
    box-shadow: none;
    min-height: 40px;
    height: auto;
    text-overflow: ellipsis;
    cursor: pointer;
    width: 100%;
    outline: none;
}

.btn-primary:hover {
    background-color: rgb(0, 46, 108) !important;
    border-color: rgb(0, 46, 108) !important;
    opacity: 0.9;
}

/* Separator line */
.separator-line {
    border-top: 1px solid #ccc;
    margin: 25px 0;
    color: #002e6c;
}

/* Custom links section */
.custom-links-section {
    font-size: 15px;
    margin-top: 25px;
    color: #002e6c;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.custom-links-section h3 {
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.custom-links-section .links-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.custom-links-section a {
    color: #002e6c;
    text-decoration: none;
    white-space: nowrap;
    font-size: 15px;
    padding: 4px 0;
}

.custom-links-section a:hover {
    text-decoration: underline;
}

/* Alert messages */
.alert {
    margin-bottom: 20px;
    padding: 12px;
    border-radius: 4px;
}

.alert-error {
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.alert-success {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

/* Hide default Keycloak elements */
#kc-form-options {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    body,
    .login-pf body,
    .login-pf-page {
        background-color: #ffffff !important;
    }

    .login-pf-page .card-pf {
        padding: 10px 20px 30px 20px !important;
        margin-top: 0 !important;
        margin-bottom: 0 !important;
    }
}

@media (min-width: 768px) {
    .login-pf-page .card-pf {
        padding: 10px 20px 30px 20px !important;
        margin-bottom: 0 !important;
    }
}

.login-pf-page .login-pf-header {
    margin-bottom: 20px;
    display: -ms-flexbox;
    display: block;
    -ms-flex-direction: column;
    flex-direction: column;
}
