@import '../variables.css';
@import '../base.css';
@import '../layout.css';
@import '../components.css';

.password-input-wrapper{
    display: flex;
    align-items: center;
    position: relative;
}

.password-toggle-button {
    right: 0.5rem;
    cursor: pointer;
    position: absolute;
    text-align: right;

    & i {
        font-size: 14px;
        line-height: 1;
        color: #333;

        &:hover {
            color: #000;
        }
    }
}

.forgotten_password {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin: 0 auto;
}

.forgotten_password .forgotten_password_link {
    color: var(--primary-color);
}

.kc-social-section h4 {
  display: none;
}


.forgotten_password_link:hover {
    text-decoration: none;
}

#kc-form-container {
    display: flex;
    align-items: center;
    min-height: 500px;
    width: 1024px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 5px;
    overflow: hidden;
    padding: 0px !important;
}

#kc-image-placeholder {
    flex: 1;
    display: flex;
    height: 100%;
    width: 100%;
}

.tip-container {
    overflow: hidden;
    width: 100%;
}

.tip-wrapper {
    transition: opacity 0.3s ease-in-out;
}

.tip-wrapper.fade-out {
    opacity: 0;
}

.tip-wrapper.fade-in {
    opacity: 1;
}

#kc-image-placeholder-text {
    display: flex;
    flex-direction: column;
    color: var(--text-light);
    height: 580px;
    width: 100%;
    padding: 2.5rem 2.5rem;
    justify-content: end;
    gap: 1rem;
    place-items: baseline;
    text-align: left;
    background-image: linear-gradient(135deg, var(--ch-complementary2), var(--ch-main4));
    opacity: 0.9;

    h1 {
        font-size: 1.4rem;
        font-weight: 300;
        line-height: 2.188rem;
        color: var(--text-light);
        margin: 0;
    }

    button {
        background: none;
        color: var(--text-light);
        border: none;
        font-size: 1rem;
        font-weight: 200;
        padding: 0px;;

        &:hover {
            color: var(--text-light);
            text-decoration: underline;
        }
    }
}

#kc-form {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

#kc-form-wrapper {
    width: 310px;
}

#trouble-login {
    border-top: 1px solid #dde2e3;
    padding-top: 1rem;
    align-items: center;
    display: flex;
    justify-content: center;
}

#trouble-login-container {
    text-align: left;
    width: 310px;
}

#trouble-login-container h2 {
    margin: 1rem 0 1rem;
    font-size: 1.5rem;
    color: var(--text-dark);
}

#trouble-login-container p {
    margin-bottom: 2rem;
    font-size: 14px;
    color: var(--text-dark);
}

#trouble-login-container a {
    color: var(--primary-color);
}

#kc-social-providers {
    display: none;
}

/* Responsive styles for smaller screens */
@media screen and (max-width: 1024px) {

    .card-pf {
        width: 70%;
    }

    #kc-form-container {
        width: 100%;
        max-width: 500px;
        min-height: auto;
        margin: 2rem auto;
        padding: 2rem;
        background: white;
    }

    #kc-image-placeholder {
        display: none;
    }

    #kc-form {
        flex: 1;
        width: 100%;
        padding: 1rem 0;
    }

    #kc-form-wrapper {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding: 0 1rem;
    }

    #trouble-login-container {
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        padding: 0 1rem;
    }
}

@media screen and (max-width: 768px) {

    .card-pf {
        width: 80%;
    }

    #kc-form-container {
        margin: 1.5rem auto;
        padding: 1.5rem;
        max-width: 90%;
    }

    #kc-form {
        padding: 0.75rem 0;
    }

    #kc-form-wrapper {
        max-width: 100%;
        padding: 0 0.75rem;
    }

    #trouble-login-container {
        max-width: 100%;
        padding: 0 0.75rem;
    }
}

@media screen and (max-width: 480px) {
    #kc-form-container {
        margin: 1rem;
        padding: 1.5rem 1rem;
        max-width: calc(100% - 2rem);
        border-radius: 8px;
    }

    #kc-form {
        padding: 0.5rem 0;
    }

    #kc-form-wrapper {
        max-width: 100%;
        padding: 0;
    }

    #trouble-login-container {
        max-width: 100%;
        padding: 0;
    }

    #trouble-login-container h2 {
        font-size: 1.25rem;
        margin: 1rem 0 0.75rem;
    }

    #trouble-login-container p {
        font-size: 13px;
        margin-bottom: 1.5rem;
    }
}