.form-content {
    width: 416px !important;
    max-width: 416px;
    margin: 0 auto;
}

/* Grid layout adjustments */
.form-body .container-fluid {
    padding: 0;
}

.form-body .row {
    margin: 0;
}

.form-body .col-12.col-md-4.col-lg-4.col-xl-4 {
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.form-holder {
    width: 100%;
    max-width: 416px;
}

.title-login {
    color: var(--primary-800, #2F3D40);
    font-family: Inter;
    font-size: 48px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 2.4px;
}

.sub-title-login  {
    color: var(--text-secondary, #596060);
    text-align: center;
    font-family: "BIZ UDPGothic";
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
}

.type-login-form-item {
    width: 50%;
    color: var(--component-input-primary-outline, #B4BABA);
    text-align: center;
    font-family: "Noto Sans JP";
    font-size: 12px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    cursor: pointer;
    border-bottom: 1px solid #B4BABA;
}
.type-login-form-item.active {
    color: var(--text-primary, #2E3333);
    border-bottom: 2px solid var(--text-primary, #2E3333);
}

.icon-form {
    width: 36px;
    height: 36px;
}

.login-form {
    padding: 0 !important;
}

.input-view {
    border-radius: 4px;
    border: 1px solid var(--component-input-primary-outline, #B4BABA);
    margin: 0;
}

.input-view:hover {
    border: 1.5px solid #178DA8;
}

.input-view:focus-within {
    border: 2px solid #178DA8;
}

/* Hover background for input container */
.input-view:hover .image {
    background: #F0F6F7;
}

.input-view:hover .input {
    background: #F0F6F7 !important;
}

.input-view:focus-within .image {
    background: #FFF !important;
}

.input-view:focus-within .input {
    background: #FFF !important;
}

.input-view .image {
    background: #fff;
    border-right: solid 1px var(--component-input-primary-outline, #B4BABA);
}

.input-view .input{
    background: #fff !important;
}

.input-view .input:disabled {
    background: #f2f2f2 !important;
}

.input-view:has(.input:disabled) .image {
    background: #f2f2f2 !important;
}

.input::placeholder {
    color: var(--text-secondary, #596060) !important;
    font-family: "Noto Sans JP" !important;
    font-size: 14px !important;
    font-style: normal !important;
    font-weight: 500 !important;
    line-height: normal !important;
    letter-spacing: 0.56px !important;
}

button#forgot-password {
    color: var(--text-secondary, #596060);
    font-family: "Noto Sans JP";
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    background-color: #fff;
}
button#login {
    background-color: #39AAC3;
    color: #FFF;
    font-family: "BIZ UDPGothic";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    border-radius: 8px;
    height: 40px;
}
.sub-footer-login {
    text-align: center;
}
.sub-footer-login-item-text {
    color:  #596060 !important;
    text-align: center !important;
    font-family: "Noto Sans JP";
    font-size: 15px !important;
    font-style: normal;
    font-weight: 500 !important;
    line-height: 21.031px;
}

.sub-footer-login-item-link {
    color: #39AAC3;
    font-family: "Noto Sans JP" !important;
    font-size: 14px !important;
    font-style: normal;
    font-weight: 500;
    line-height: 21.031px;
}

.sub-footer-login-item-link:hover {
    color: #2a8a9e;
    text-decoration: none;
}

.login-form .login-button {
    margin: 12px 0;
}

.error-text {
    display: flex;
    align-items: center;
    min-height: 24px;
    padding: 0;
    color: var(--error-main, #E5534A);
    font-family: "Noto Sans JP";
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

.message-login-privileges {
    display: block !important;
    color: var(--error-main, #E5534A) !important;
    font-family: "Noto Sans JP";
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    margin: 8px 0;
    padding: 0;
}

.border-error {
    border: 2px solid var(--error-main, #E5534A) !important;
}

/* Forgot Password modal size */
#modal-forgot-password .modal-dialog {
    width: 632px;
    min-width: 632px;
}

#modal-forgot-password .modal-content {
    height: 502px;
    max-height: 502px;
    border-radius: 6px;
    background: #fff;
}

#modal-forgot-password .modal-header {
    border-bottom: none;
}

#modal-forgot-password .group-header .title-header {
    font-size: 24px;
    font-weight: bold;
    font-family: "Inter";
    color: #2F3D40;
    margin-left: 10px;
}

#modal-forgot-password .modal-container {
    width: 632px;
    height: 502px;
    box-shadow: 4px 4px 10px 0 rgba(0, 0, 0, 0.25);
    position: relative;
    background: var(--gray-050, #FAFCFC);
}

#modal-forgot-password .modal-container .btn-dismiss-modal {
    position: absolute;
    right: 10px;
    top: 10px;
    opacity: 1;
}

#modal-forgot-password .modal-container-content {
    width: 416px;
}

#modal-forgot-password .modal-container-content .title-modal-forgot-password {
    color: var(--text-primary, #2E3333);
    font-family: "Noto Sans JP";
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 1.6px;
}

#modal-forgot-password .modal-container-content .sub-title-modal-forgot-password {
    color: var(--gray-500, #878F8F);
    font-family: "Noto Sans JP";
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    width: 410px;
}

#modal-forgot-password .input-view {
    width: 100%;
}

#modal-forgot-password #fp-send-email {
    color: #FFF;
    font-family: "BIZ UDPGothic";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 2.4px;
    background-color: #39AAC3;
    border-radius: 6px;
    height: 40px;
    width: 232px;
    margin: 16px 0;
}

#modal-forgot-password .sub-footer-modal-forgot-password .sub-footer-modal-forgot-password-text {
    color: var(--gray-500, #878F8F);
    font-family: "Noto Sans JP";
    font-size: 12px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
}

#modal-notification-success-login .btn-action-modal {
    background-color: #39AAC3;
    color: #FFF;
    font-family: "BIZ UDPGothic";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    letter-spacing: 2.4px;
    border-radius: 6px;
}

#fp-send-email.disabled {
    cursor: not-allowed;
}

a.sub-footer-login-item-link:focus {
    color: #39AAC3;
}

/* ---------------------------------------------
   Fullscreen sizing for Forgot Password modal
   - Modal occupies full viewport (width & height)
   - Force override older fixed min-width rules
   --------------------------------------------- */
#modal-forgot-password.modal .modal-dialog {
    width: 100vw !important;
    max-width: 100vw !important;
    min-width: 100vw !important; /* override legacy min-width:1000px */
    height: 100vh !important;
    max-height: 100vh !important;
    margin: 0 !important; /* remove default modal margins */
}

#modal-forgot-password .modal-content {
    height: 100vh !important;
    max-height: 100vh !important;
    min-height: 100vh !important;
    border-radius: 0 !important;
    overflow: hidden;
}

#modal-forgot-password .modal-body {
    height: calc(100vh - 56px); /* approximate header height */
    max-height: calc(100vh - 56px);
    overflow: auto;
}

@media (max-width: 480px) {
    #modal-forgot-password .modal-container {
        width: calc(100vw - 24px);
    }
    #modal-forgot-password #fp-send-email {
        width: 100%;
    }
}