@charset "utf-8";

/* 회원·법인의료기관 로그인 공통 */

.auth-main {
    position: relative;
    min-height: 820px;
    overflow: hidden;
    padding: 26px 0 70px;
    border-bottom: 1px solid var(--renewal-gray-200);
    background: #f4f8fe;
}

.auth-main--corporate {
    min-height: 830px;
}

.auth-container {
    position: relative;
    z-index: 2;
}

.auth-background span {
    position: absolute;
    border-radius: 50%;
    background: rgba(210, 228, 251, 0.48);
}

.auth-background span:first-child {
    top: -8px;
    right: 7%;
    width: 205px;
    height: 205px;
}

.auth-background span:first-child::after {
    position: absolute;
    top: 12px;
    right: 5px;
    width: 86px;
    height: 86px;
    content: "";
    border-radius: 50%;
    background: rgba(190, 216, 249, 0.55);
}

.auth-background span:last-child {
    bottom: 65px;
    left: 5%;
    width: 170px;
    height: 170px;
}

.auth-heading {
    margin-bottom: 38px;
    text-align: center;
}

.auth-heading h1 {
    color: var(--renewal-navy);
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.055em;
}

.auth-heading p {
    margin-top: 7px;
    color: var(--renewal-gray-600);
    font-size: 14px;
}

.auth-shell {
    display: grid;
    width: min(100%, 1000px);
    min-height: 585px;
    margin: 0 auto;
    --renewal-card-overflow: hidden;
    --renewal-card-border: 0;
    --renewal-card-radius: 24px;
    --renewal-card-shadow: 0 18px 42px rgba(29, 59, 99, 0.14);
}

.auth-shell--member {
    grid-template-columns: 46% 54%;
}

.auth-shell--corporate {
    grid-template-columns: 34% 66%;
    min-height: 570px;
}

.auth-promo {
    position: relative;
    overflow: hidden;
    padding: 50px 58px;
    color: #fff;
}

.auth-promo::before,
.auth-promo::after {
    position: absolute;
    content: "";
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.055);
}

.auth-promo::before {
    top: -55px;
    right: -40px;
    width: 225px;
    height: 225px;
}

.auth-promo::after {
    bottom: -145px;
    left: -100px;
    width: 330px;
    height: 330px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.auth-promo--member {
    background: linear-gradient(145deg, #17477f 0%, #0e62d8 100%);
}

.auth-promo--corporate {
    padding: 42px 40px;
    background: linear-gradient(145deg, #12435e 0%, #078c91 100%);
}

.auth-promo__icon {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.16);
}

.auth-promo__shield {
    display: block;
    width: 54px;
    height: 66px;
    overflow: visible;
}

.auth-promo__shield path {
    fill: #2868ad;
    stroke: #fff;
    stroke-linejoin: round;
    stroke-width: 4;
}

.auth-promo__icon .auth-promo__shield-lock {
    top: calc(50% - 2px);
    left: calc(50% - 2px);
    color: #7ce7d2;
    transform: translate(-50%, -50%);
}

.auth-promo__icon--lock {
    width: 70px;
    height: 70px;
    border-radius: 50%;
}

.auth-promo__icon--lock::before {
    position: absolute;
    top: 30px;
    width: 34px;
    height: 29px;
    content: "";
    border: 3px solid #fff;
    border-radius: 4px;
}

.auth-promo__icon--lock::after {
    position: absolute;
    top: 14px;
    width: 23px;
    height: 23px;
    content: "";
    border: 3px solid #fff;
    border-bottom: 0;
    border-radius: 18px 18px 0 0;
}

.auth-promo__badge {
    position: relative;
    z-index: 1;
    display: inline-flex;
    min-height: 31px;
    margin-top: 28px;
    padding: 6px 16px;
    align-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.17);
    font-size: 12px;
    font-weight: 700;
}

.auth-promo h2 {
    position: relative;
    z-index: 1;
    margin-top: 14px;
    font-size: 29px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.05em;
}

.auth-promo__description {
    position: relative;
    z-index: 1;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    line-height: 1.75;
}

.auth-promo__features {
    position: relative;
    z-index: 1;
    margin-top: 39px;
}

.auth-promo__features li,
.auth-promo__bullets li {
    position: relative;
    padding-left: 31px;
    font-size: 13px;
    font-weight: 500;
}

.auth-promo__features li + li {
    margin-top: 21px;
}

.auth-promo__features li::before {
    position: absolute;
    top: 1px;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    content: "✓";
    border-radius: 50%;
    color: #fff;
    background: rgba(126, 232, 214, 0.35);
    font-size: 12px;
}

.auth-promo__bullets {
    position: relative;
    z-index: 1;
    margin-top: 26px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.auth-promo__bullets li + li {
    margin-top: 20px;
}

.auth-promo__bullets li::before {
    position: absolute;
    top: 7px;
    left: 2px;
    width: 8px;
    height: 8px;
    content: "";
    border-radius: 50%;
    background: #8ee7db;
}

.auth-panel {
    padding: 42px 70px 32px;
}

.auth-panel--corporate {
    padding: 45px 80px 28px;
}

.auth-panel__heading h2 {
    color: var(--renewal-navy);
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -0.045em;
}

.auth-panel__heading > p:not(.auth-panel__eyebrow) {
    margin-top: 5px;
    color: var(--renewal-gray-600);
    font-size: 12px;
}

.auth-panel__eyebrow {
    margin-bottom: 8px;
    color: #058b91;
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.auth-form {
    margin-top: 25px;
}

.form-field + .form-field {
    margin-top: 19px;
}

.form-field > label {
    display: block;
    margin-bottom: 8px;
    color: var(--renewal-navy);
    font-size: 12px;
    font-weight: 700;
}

.form-control {
    position: relative;
}

.form-control input {
    height: 60px;
    padding: 0 54px;
    border-radius: 13px;
    --renewal-input-background: #f9fbfe;
    font-size: 13px;
}

.form-control input::placeholder {
    color: #8795aa;
}

.form-control input:focus {
    border-color: #3380e4;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(24, 104, 215, 0.1);
}

.form-control.is-error input {
    border-color: #df4f5f;
    box-shadow: 0 0 0 3px rgba(223, 79, 95, 0.08);
}

.form-control__icon {
    position: absolute;
    top: 50%;
    left: 17px;
    z-index: 1;
    width: 24px;
    height: 24px;
    color: #8190a6;
    transform: translateY(-50%);
    pointer-events: none;
}

.form-control__icon--user::before {
    position: absolute;
    top: 1px;
    left: 6px;
    width: 11px;
    height: 11px;
    content: "";
    border: 2px solid currentColor;
    border-radius: 50%;
}

.form-control__icon--user::after {
    position: absolute;
    bottom: 0;
    left: 1px;
    width: 20px;
    height: 10px;
    content: "";
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 14px 14px 0 0;
}

.form-control__icon--lock::before {
    position: absolute;
    top: 8px;
    left: 4px;
    width: 16px;
    height: 14px;
    content: "";
    border: 2px solid currentColor;
    border-radius: 3px;
}

.form-control__icon--lock::after {
    position: absolute;
    top: 1px;
    left: 8px;
    width: 8px;
    height: 10px;
    content: "";
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
}

.form-control__icon--building {
    width: 27px;
    height: 27px;
    border-radius: 6px;
    background: #e4f7f5;
}

.form-control__icon--building::before {
    position: absolute;
    top: 5px;
    left: 8px;
    width: 10px;
    height: 17px;
    content: "";
    border: 2px solid #15969a;
    border-top: 0;
}

.form-control__icon--building::after {
    position: absolute;
    top: 8px;
    left: 11px;
    width: 2px;
    height: 2px;
    content: "";
    background: #15969a;
    box-shadow: 4px 0 #15969a, 0 4px #15969a, 4px 4px #15969a, 0 8px #15969a, 4px 8px #15969a;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    transform: translateY(-50%);
    cursor: pointer;
}

.password-toggle span {
    position: relative;
    width: 21px;
    height: 13px;
    border: 2px solid #94a2b6;
    border-radius: 50% / 60%;
}

.password-toggle span::before {
    position: absolute;
    top: 3px;
    left: 7px;
    width: 4px;
    height: 4px;
    content: "";
    border-radius: 50%;
    background: #94a2b6;
}

.password-toggle.is-visible span::after {
    position: absolute;
    top: 4px;
    left: -3px;
    width: 25px;
    height: 2px;
    content: "";
    background: #94a2b6;
    transform: rotate(-38deg);
}

.form-field__error {
    display: none;
    margin-top: 5px;
    color: #cf3f50;
    font-size: 11px;
}

.form-field__error:not(:empty) {
    display: block;
}

.auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 14px;
    color: var(--renewal-gray-600);
    font-size: 12px;
}

.auth-options > a {
    color: var(--renewal-navy);
    font-weight: 500;
}

.remember-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-check input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.remember-check > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 19px;
    height: 19px;
    border: 1px solid #c4d0df;
    border-radius: 5px;
    background: #fff;
}

.remember-check input:checked + span {
    border-color: var(--renewal-blue);
    background: var(--renewal-blue);
}

.remember-check input:checked + span::after {
    width: 8px;
    height: 4px;
    content: "";
    border-bottom: 2px solid #fff;
    border-left: 2px solid #fff;
    transform: rotate(-45deg);
}

.remember-check input:focus-visible + span {
    outline: 3px solid rgba(18, 97, 216, 0.3);
    outline-offset: 2px;
}

.auth-submit {
    gap: 42px;
    width: 100%;
    min-height: 58px;
    margin-top: 24px;
    padding: 0 24px;
    color: #fff;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 10px 22px rgba(16, 90, 193, 0.18);
}

.auth-submit:hover {
    filter: brightness(1.07);
    transform: translateY(-1px);
}

.auth-submit--blue {
    background: linear-gradient(135deg, #2477e8, #155dcd);
}

.auth-submit--teal {
    background: linear-gradient(135deg, #11939a, #087d83);
    box-shadow: 0 10px 22px rgba(5, 126, 132, 0.18);
}

.auth-form__message {
    display: none;
    margin-top: 10px;
    color: #cf3f50;
    font-size: 12px;
    text-align: center;
}

.auth-form__message:not(:empty) {
    display: block;
}

.auth-form__message.is-success {
    color: #07868b;
}

.auth-notice {
    display: flex;
    gap: 12px;
    margin-top: 25px;
    padding: 14px 16px;
    color: #36506f;
    border: 1px solid #c9ddf8;
    border-radius: 12px;
    background: #f1f7ff;
    font-size: 13px;
}

.auth-notice > span {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    color: #fff;
    border-radius: 50%;
    background: var(--renewal-blue);
    font-family: serif;
    font-weight: 700;
}

.auth-notice strong {
    color: var(--renewal-navy);
}

.auth-notice p {
    margin-top: 5px;
}

.auth-switch-link {
    margin-top: 18px;
    color: var(--renewal-gray-600);
    font-size: 12px;
    text-align: center;
}

.auth-switch-link a,
.corporate-help a,
.corporate-join-link a {
    margin-left: 8px;
    color: #07868b;
    font-weight: 700;
}

.corporate-help {
    margin-top: 13px;
    color: var(--renewal-gray-500);
    font-size: 12px;
}

.corporate-join-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 22px;
    padding-top: 18px;
    color: var(--renewal-gray-500);
    border-top: 1px solid var(--renewal-gray-200);
    font-size: 12px;
}

@media (max-width: 1080px) and (min-width: 901px) {
    .auth-shell {
            width: min(100%, 920px);
    }
    
    .auth-panel,
    .auth-panel--corporate {
            padding-right: 48px;
            padding-left: 48px;
    }
    
    .auth-promo {
            padding-right: 42px;
            padding-left: 42px;
    }
}

@media (max-width: 900px) {
    .auth-main,
    .auth-main--corporate {
            min-height: auto;
            padding: 24px 0 42px;
    }
    
    .auth-heading {
            margin-bottom: 24px;
    }
    
    .auth-heading h1 {
            font-size: 28px;
    }
    
    .auth-heading p {
            font-size: 12px;
    }
    
    .auth-shell,
    .auth-shell--member,
    .auth-shell--corporate {
            grid-template-columns: 1fr;
            min-height: 0;
            border-radius: 19px;
    }
    
    .auth-promo,
    .auth-promo--corporate {
            padding: 25px 27px;
    }
    
    .auth-promo__icon {
            width: 58px;
            height: 58px;
            border-radius: 16px;
    }
    
    .auth-promo__shield {
            width: 36px;
            height: 44px;
    }
    
    .auth-promo__icon .auth-promo__shield-lock {
            top: calc(50% - 1px);
            left: calc(50% - 1px);
            transform: translate(-50%, -50%) scale(0.72);
    }
    
    .auth-promo__icon--lock::before {
            top: 25px;
            width: 27px;
            height: 22px;
            border-width: 2px;
    }
    
    .auth-promo__icon--lock::after {
            top: 12px;
            width: 18px;
            height: 18px;
            border-width: 2px;
    }
    
    .auth-promo__badge {
            position: absolute;
            top: 25px;
            left: 98px;
            margin: 0;
    }
    
    .auth-promo h2 {
            margin-top: 15px;
            font-size: 23px;
    }
    
    .auth-promo__description {
            max-width: 560px;
            margin-top: 10px;
            font-size: 12px;
    }
    
    .auth-promo__features,
    .auth-promo__bullets {
            display: none;
    }
    
    .auth-panel,
    .auth-panel--corporate {
            padding: 28px 28px 30px;
    }
    
    .auth-panel__heading h2 {
            font-size: 24px;
    }
    
    .auth-switch-link {
            margin-top: 16px;
    }
}

@media (max-width: 600px) {
    .auth-main,
    .auth-main--corporate {
            padding-top: 20px;
    }
    
    .auth-heading h1 {
            font-size: 25px;
    }
    
    .auth-heading p {
            max-width: 300px;
            margin-right: auto;
            margin-left: auto;
            line-height: 1.65;
    }
    
    .auth-promo,
    .auth-promo--corporate {
            padding: 22px;
    }
    
    .auth-promo__badge {
            top: 23px;
            left: 88px;
            font-size: 10px;
    }
    
    .auth-promo h2 {
            font-size: 20px;
    }
    
    .auth-promo__description {
            font-size: 11px;
    }
    
    .auth-panel,
    .auth-panel--corporate {
            padding: 25px 20px 27px;
    }
    
    .auth-panel__heading h2 {
            font-size: 22px;
    }
    
    .form-control input {
            height: 56px;
    }
    
    .auth-options {
            align-items: flex-start;
            flex-direction: column;
    }
    
    .auth-submit {
            min-height: 54px;
    }
    
    .auth-notice {
            padding: 13px;
    }
    
    .corporate-join-link {
            align-items: flex-start;
            flex-direction: column;
            gap: 8px;
    }
    
    .corporate-join-link a {
            margin-left: 0;
    }
    
    .auth-switch-link {
            line-height: 1.8;
    }
    
    .auth-switch-link a {
            display: block;
            margin: 4px 0 0;
    }
}
