@import url('https://fonts.googleapis.com/css2?family=Inter:ital,wght@0,400;0,500;0,600;1,400;1,500;1,600&display=swap');

body {
    background: #f4f4f4;
    font-family: "Inter", sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-container {
    flex-direction: column;
    align-items: center;
    display: flex;
    padding: 3rem 1rem; /* Desktop padding */
    width: 100%;
    box-sizing: border-box;
}

.login-page {
    border: 1px solid #ccc;
    border-radius: 12px;
    width: 100%;
    max-width: 500px; /* Increased from 480px to 700px */
    display: flex;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.login-block {
    width: 100%;
}

.login-main {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2.462rem;
}

.login-block h1 {
    font-family: "Inter", sans-serif;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    font-size: 27px;
    padding: 8px 4px;
    margin: 0 0 1.5rem 0;
}

.login-block label {
    font-family: "Inter", sans-serif;
    font-weight: 500;
    font-size: 16px;
    color: #00272b;
    margin: 10px 0px;
    display: block;
}

.login-block input {
    font-family: "Inter", sans-serif;
    border: 1px solid #e5e7eb;
    padding: 0 15px;
    background-color: #fff;
    border-radius: 6px;
    width: 100%;
    font-size: 16px;
    height: 3.5rem;
    display: block;
    box-sizing: border-box;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.login-block input:focus {
    border-color: #0071bb;
    box-shadow: 0 0 0 3px rgba(0, 113, 187, 0.2);
    outline: none;
}

#input-error {
    font-family: "Inter", sans-serif;
    font-size: 14px;
    color: #f00;
    margin-top: 5px;
    display: block;
}

#kc-form-buttons #kc-login, #kc-form-buttons .pf-c-button{
    font-family: "Inter", sans-serif;
    width: 100%;
    background-color: #00272b !important;
    border-radius: 4px;
    align-items: center;
    cursor: pointer;
    border: none !important;
    font-weight: 500;
    font-size: 17px;
    color: #fff;
    margin: 25px 0px;
    padding: 0.75rem;
    transition: background-color 0.3s;
}

#kc-form-buttons #kc-login:hover, #kc-form-buttons .pf-c-button:hover {
    background-color: #003357 !important;
}

#kc-form-buttons #kc-login:disabled {
    background-color: #a0a0a0 !important;
    cursor: not-allowed;
}

#kc-social-providers ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#kc-social-providers ul li {
    margin-bottom: 0.5rem;
}

#kc-social-providers ul li a {
    font-family: "Inter", sans-serif;
    width: 100%;
    border: 1px solid #9ca3af;
    border-radius: 4px;
    cursor: pointer;
    background-color: transparent;
    color: #00272b;
    display: flex;
    align-items: center;
    text-align: left;
    padding: 10px 15px;
    box-sizing: border-box;
    text-decoration: none;
    transition: background-color 0.3s, border-color 0.3s;
}

#kc-social-providers ul li a:hover {
    background-color: #f9f9f9;
    border: 1px solid #b7ccd0;
}

#kc-social-providers ul li a svg {
    vertical-align: middle;
    margin-right: 8px;
    width: 20px;
    height: 20px;
}

#kc-registration span,
#kc-registration a {
    font-family: "Inter", sans-serif;
    font-size: 15px;
    color: #00272b;
    font-weight: 400;
    margin: 10px 0px;
    display: inline-block;
}

#kc-registration a {
    text-decoration: underline;
    color: #00272b;
    transition: color 0.3s;
}

#kc-registration a:hover {
    color: #1f50b1;
}

.pf-v5-c-login__main-footer-band {
    width: 100%;
    height: 1px;
    background: #ccc;
    margin: 35px 0px;
    text-align: center;
    position: relative;
}

.pf-v5-c-login__main-footer-band-item {
    position: absolute;
    background: #fff;
    padding: 0 15px;
    display: inline-block;
    left: 50%;
    transform: translate(-50%, -50%);
    top: -16px;
    font-size: 15px;
}

.pf-c-input-group {
    position: relative;
}

.pf-c-input-group .pf-c-button.pf-m-control {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.pf-c-input-group .pf-c-button.pf-m-control:focus {
    outline: none;
}

.login-block .form-group {
    color: #f00;
    font-size: 13px;
    margin-top: 5px;
}

.alert-error {
    font-size: 13px;
    color: #f00;
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.alert-error .pf-c-alert__icon {
    display: inline-block;
    margin-right: 5px;
}

.forgotpassword {
    font-family: "Inter", sans-serif;
    color: #00272b;
    font-size: 14px;
    display: inline-block;
    margin: 15px 0px 0px;
    text-align: right;
    width: 100%;
    text-decoration: none;
    transition: color 0.3s;
}

.forgotpassword:hover {
    color: #0071bb;
}

#kc-form-buttons,
#kc-form-buttons #kc-login {
    text-align: center;
}

.checkbox {
    display: flex;
    align-items: center;
}

.checkbox label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
    color: #00272b;
}

.checkbox input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
}

   #kc-form-options .col-md-6 a{
    float: right;
   }

   #kc-form-options .col-md-6{
    width: 48%;
    display: inline-block;
   }

   #kc-form-options a{
    font-family: "Inter", sans-serif;
  font-size: 15px;
  color: #00272b;
  font-weight: 400;
  margin: 10px 0px;
  display: inline-block;
   }

   #kc-form-options {
    text-align: center;
}

.forget-msg {
    width: 500px;
    text-align: center;
    margin: 25px 0px;
    line-height: 27px;
     font-family: "Inter", sans-serif;
    font-size: 15px;
}



@media screen and (max-width: 600px) {
    body {
        align-items: flex-start; 
        background: #fff;
    }

    .flex-container{
        align-self: center;
    }

    .forget-msg {
        width: 100%;
    }

    .login-block h1{
        font-size: 20px;
    }

    .flex-container {
        padding: 0 1rem; /* Remove top and bottom padding, keep side padding */
    }

    .login-page {
        width: 100%;
        display: block;
        padding: 1rem;
        box-shadow: none;
        border: none;
        border-radius: 0; /* Optional: Remove border radius for full-screen look */
    }

    .login-main {
    padding: 1rem;
    gap: 1.5rem;
    }

    #kc-header img {
    width: 270px;
    }

    .pf-v5-c-login__main-footer-band-item {
    font-size: 14px;
    padding: 0 10px;
    }

    .login-block input {
        height: 2.8rem;
    }



    .login-block label {
    font-size: 14px;
    margin: 4px 0;
    }

    .checkbox label {
    font-size: 13px;
   }

   #kc-form-buttons #kc-login {
    margin: 9px 0px;
}

.pf-v5-c-login__main-footer-band {
    margin: 24px 0px;
}

#kc-form-options .col-md-6 a {
    float: right;
    font-size: 13px;
    display: contents;
}



}
