.login-page {
    display: flex;
    min-height: 100vh;
}

.logo {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.logo-image {
    display: block;
    width: auto;
    height: 80px;
}

.left-panel{
    background-image: url('../images/AccountBackgroung/Minimal_botanical_abstract_with_soft_accents.png');
    background-size: cover;
    flex: 0 1 600px;
    padding: 70px;
    padding-top: 200px;
    max-width: 600px;
    width: 100%;
}

.right-panel {
    flex: 1 1 0;
    width: 100%;
    min-width: 0;
    position: relative;
    overflow: hidden;
}

.slider img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
    filter: brightness(0.7);
}

.slider img.active {
    opacity: 1;
}

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border: 1px solid #dfe6e0;
    border-radius: 10px;
    color: #303b33;
    background: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, transform .12s ease;
}

.btn-google:hover {
    background: #fbfcfb;
    border-color: #cbd8cd;
    box-shadow: 0 4px 12px rgba(35, 53, 41, .08);
}

.btn-google:active {
    transform: translateY(1px);
}

.btn-google:focus-visible {
    outline: 3px solid rgba(31, 122, 77, .24);
    outline-offset: 2px;
}

.resend-btn {
    margin-top: 15px;
    width: 100%;
    min-height: 50px;
    padding: 12px;
    border: 1px solid #1f7a4d;
    background: transparent;
    color: #1f7a4d;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.resend-btn:hover {
    background: #1f7a4d;
    color: white;
}

.resend-btn .icon {
    font-size: 18px;
}

.alert-success {
    margin-bottom: 15px;
    margin-top: 15px;
    padding: 12px;
    border-radius: 8px;
    background: #e6f4ea;
    color: #1f7a4d;
    text-align: center;
    font-weight: 500;
}

.google-icon {
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
}

.password-wrapper {
    position: relative;
}

    .password-wrapper .form-control {
        padding-right: 45px;
    }

.password-toggle {
    position: absolute;
    top: 50%;
    right: 6px;
    width: 40px;
    height: 40px;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #6c757d;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

    .password-toggle:hover {
        color: #212529;
    }

    .password-toggle:focus-visible {
        outline: 2px solid #0d6efd;
        outline-offset: 2px;
        border-radius: 4px;
    }
.code-input {
    -moz-appearance: textfield;
}

.code-input::-webkit-inner-spin-button,
.code-input::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.login-page {
    color: #26342b;
    font-family: "Inter", "Segoe UI", sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.login-page input,
.login-page button,
.login-page select,
.login-page textarea {
    font-family: inherit;
}

.login-content .logo {
    margin-bottom: 10px;
}

.login-subtitle {
    display: block;
    margin: 0 0 22px;
    color: #748077;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

.login-page .form-label {
    margin-bottom: 7px;
    color: #36463b;
    font-size: 14px;
    font-weight: 600;
}

.login-page .form-control {
    min-height: 50px;
    padding: 12px 14px;
    color: #26342b;
    background-color: #F7F9F7;
    border: 1px solid #dce5de;
    border-radius: 10px;
    box-shadow: none;
    font-size: 16px;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.login-page .password-wrapper .form-control {
    padding-right: 50px;
}

.login-page .form-control::placeholder {
    color: #89958c;
}

.login-page .form-control:focus {
    background-color: #fff;
    border-color: #1f7a4d;
    box-shadow: 0 0 0 3px rgba(31, 122, 77, .12);
}

.login-page input:-webkit-autofill,
.login-page input:-webkit-autofill:hover,
.login-page input:-webkit-autofill:focus {
    -webkit-text-fill-color: #26342b;
    -webkit-box-shadow: 0 0 0 1000px #F7F9F7 inset;
    transition: background-color 9999s ease-out;
}

.login-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 4px 12px;
    margin: 2px 0 16px;
}

.login-form-options .form-check {
    order: 0;
    min-height: 44px;
    margin: 0 !important;
    padding: 0;
}

.login-form-options .form-check-label {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: 8px;
    color: #47554b;
    cursor: pointer;
}

.login-form-options .form-check-input {
    position: static;
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin: 0;
    border-color: #aebbb1;
}

.login-form-options .form-check-input:checked {
    background-color: #1f7a4d;
    border-color: #1f7a4d;
}

.login-form-options .form-check-input:focus {
    border-color: #1f7a4d;
    box-shadow: 0 0 0 3px rgba(31, 122, 77, .12);
}

.login-form-options .float-end {
    order: 1;
    float: none !important;
    margin: 0 0 0 auto;
    text-align: right;
}

.login-form-options a {
    color: #1f7a4d;
    font-size: 13px;
    font-weight: 600;
}

.login-page input[type="submit"] {
    min-height: 50px;
    padding: 12px 16px;
    color: #fff;
    background-color: #1f7a4d;
    border: 1px solid #1f7a4d;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    transition: background-color .18s ease, border-color .18s ease, transform .12s ease, box-shadow .18s ease;
}

.login-page input[type="submit"]:hover {
    background-color: #196b43;
    border-color: #196b43;
    box-shadow: 0 5px 14px rgba(31, 122, 77, .18);
}

.login-page input[type="submit"]:active {
    transform: translateY(1px);
}

.login-page input[type="submit"]:focus-visible,
.login-page .btn-google:focus-visible {
    outline: 3px solid rgba(31, 122, 77, .24);
    outline-offset: 2px;
}

.login-content > .text-center {
    margin-top: 14px !important;
}

.login-register-prompt {
    margin: 16px 0 0 !important;
    color: #737e75;
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
}

.login-register-prompt a {
    color: #1f7a4d;
    font-weight: 700;
}

.login-page .text-danger {
    font-size: 13px;
    line-height: 1.4;
}

@media (max-width: 991.98px) {
    .login-page {
        flex-direction: column;
        min-height: 100vh;
        min-height: 100svh;
    }

    .right-panel {
        order: -1;
        flex: 0 0 clamp(130px, 18vh, 145px);
        width: 100%;
        min-height: 0;
        border-radius: 0 0 18px 18px;
        box-shadow: 0 8px 24px rgba(31, 41, 55, .12);
    }

    .slider img {
        object-position: center 14%;
    }

    .left-panel {
        flex: 1 0 auto;
        width: 100%;
        max-width: none;
        padding: 24px 18px calc(32px + env(safe-area-inset-bottom));
        padding-inline-start: max(18px, env(safe-area-inset-left));
        padding-inline-end: max(18px, env(safe-area-inset-right));
        background-image:
            linear-gradient(rgba(255, 255, 255, .87), rgba(255, 255, 255, .94)),
            url('../images/AccountBackgroung/Minimal_botanical_abstract_with_soft_accents.png');
        background-position: center;
    }

    .login-content {
        width: min(100%, 460px);
        margin: 0 auto;
        padding: 24px;
        background: #fff;
        border: 1px solid #e9eee9;
        border-radius: 20px;
        box-shadow: 0 12px 34px rgba(35, 53, 41, .08);
    }

    .login-content .logo-image {
        max-width: 100%;
        height: 62px;
    }
}
