/* Base styles for login page */
.login-pf body {
    background: white url(../img/img.png) no-repeat center!important;
    background-size: cover!important;
    height: 100%;
    margin: 0;
    font-family: 'Manrope', sans-serif;
}

.kc-login-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.header-row, .kc-form-card {
    font-family: 'Manrope', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#kc-header-wrapper, #kc-form h1, #kc-registration a {
    font-weight: 700;
    color: #333;
}

#kc-form a {
    color: #6200ea;
    text-decoration: none;
    font-weight: 500;
}

.kc-form-social-account-name {
    font-weight: 500;
}

#kc-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 800px; /* Increase width */
    width: 100%;
}

#kc-form hr {
    width: 100%;
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

#kc-form a.button {
    display: inline-block;
    margin: 10px;
    padding: 15px 30px;
    background-color: #6200ea;
    color: white;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s;
}

#kc-form a.button:hover {
    background-color: #3700b3;
}

#kc-social-providers ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

#kc-social-providers ul.two-columns li {
    width: calc(33% - 10px); /* Adjust for three columns */
    margin: 10px;
}

#kc-social-providers a {
    display: block;
    width: 100%;
    background-color: #fff;
    color: #000;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px 0;
    text-align: center;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.kc-form-institution-button:hover {
    background-color: #f5f5f5;
}

.kc-form-institution img {
    max-width: 100%;
    max-height: 70px;
    height: auto;
}

.logo-container img,
.logo-small {
    max-height: 50px;
}

.header-with-logo {
    display: flex;
    align-items: center;
}

.header-with-logo img {
    margin-right: 10px;
}

.kc-login-tooltip {
    display: flex;
    align-items: center;
}

.kc-tooltip-text {
    margin-left: 5px;
}

.kc-info-text {
    margin-top: 10px;
    font-size: 14px;
    text-align: center;
    color: #333;
}

h1, h2 {
    font-weight: 500;
}

h2 {
    font-weight: 700;
    margin: 20px 0;
    color: #0028ea;
    font-size: 48px;
}

.choose-your-institution {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    color: #333;
    text-align: center; /* Ensure it is centered */
    display: block; /* Ensure it is displayed */
    margin-top: 20px; /* Ensure there is space at the top */
    width: 100%; /* Ensure it takes full width */
}

.or-do-you-have-a-wallet {
    color: #333;
    margin-top: 10px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
}

.erua-id-button {
    font-size: 16px;
    font-weight: 700!important;
    color: #fff!important;
    background-color: #0028ea!important;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    display: inline-block;
    margin-top: 10px;
    margin-left: 1rem;
    border-radius: 10%;
}

/* Tile styles for institution buttons */
.pf-c-tile {
    position: relative;
    display: inline-grid;
    padding: 1.5rem;
    margin-bottom: 0.25rem;
    text-align: center;
    cursor: pointer;
    background-color: #fff;
    grid-template-rows: min-content;
    border: 1px solid #d2d2d2;
    border-radius: 3px;
}

.pf-c-tile::before {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    content: "";
    border-radius: 3px;
}

.pf-c-tile:hover {
    border: 1px solid #06c;
    border-radius: 3px;
}

.pf-c-tile__header {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pf-c-tile__header.pf-m-stacked {
    flex-direction: column;
    justify-content: initial;
}

.pf-c-tile__header.pf-m-stacked .pf-c-tile__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
}

.pf-c-tile__title {
    color: #6a6e73;
}

.pf-c-tile__body {
    font-size: 0.75rem;
    color: #6a6e73;
}

.pf-c-tile__icon {
    margin-right: 0.5rem;
    font-size: 1.5rem;
    color: #6a6e73;
}

.pf-c-tile:hover .pf-c-tile__title,
.pf-c-tile:hover .pf-c-tile__icon {
    color: #06c;
}

.pf-c-tile.pf-m-selected .pf-c-tile__title,
.pf-c-tile.pf-m-selected .pf-c-tile__icon {
    color: #06c;
}

.pf-c-tile.pf-m-selected {
    border: 2px solid #06c;
    border-radius: 3px;
}

.pf-c-tile.pf-m-disabled {
    pointer-events: none;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .login-pf body {
        background: white;
    }

    #kc-form {
        padding: 10px;
        box-shadow: none;
        border-radius: 0;
    }

    #kc-header-wrapper {
        font-size: 16px;
        font-weight: bold;
        padding: 20px 60px 0 0;
        color: #72767b;
        letter-spacing: 0;
    }

    .header-row {
        flex-direction: column;
        align-items: center;
    }

    .logo-container img {
        max-height: 40px;
    }

    #kc-social-providers ul.two-columns li {
        width: 100%;
    }

    .choose-your-institution {
        font-size: 20px; /* Adjust font size for smaller screens */
        margin: 10px 0; /* Adjust margin */
        text-align: center;
    }

    .kc-form-institutions {
        display: flex;
        flex-direction: column; /* Stack items vertically */
        align-items: center;
    }

    .kc-form-institution-button {
        width: 80%; /* Ensure buttons take a good portion of the width */
        margin-bottom: 10px; /* Add space between buttons */

    }

    .header-with-logo {
        flex-direction: column; /* Stack logo and text vertically */
        align-items: center;
        margin-top: 7rem!important;
    }

    .header-with-logo img {
        margin: 0 0 10px 0; /* Add bottom margin to logo */
    }
}
