*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.uadm-login {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow: hidden;
}

/* 배경 이미지 */
.uadm-bg1 {
    position: absolute;
    inset: 0;
    background-image: url('/img/uadm/bg-login.png');
    background-size: cover;
    background-position: center;
    pointer-events: none;
}

.uadm-bg2 { display: none; }

/* 카드 래퍼 — 중앙에서 43px 위 */
.uadm-card-wrap {
    position: relative;
    z-index: 1;
    margin-top: -43px;
}

/* 로그인 카드 — Figma Frame 76 */
.uadm-card {
    position: relative;
    width: 500px;
    height: 514px;
    background: #FFFFFF;
    box-shadow: 0px 7px 23.6px rgba(1, 56, 167, 0.25);
    border-radius: 26px;
    overflow: hidden;
}

/* Vector 2 — Figma 익스포트 이미지 그대로 사용 */
.uadm-card-glow {
    position: absolute;
    width: 579px;
    height: 740px;
    left: 34px;
    top: -78px;
    background: url('/img/uadm/card-glow.png') no-repeat center center;
    background-size: 100% 100%;
    pointer-events: none;
    z-index: 0;
}

/* "Login" 타이틀 */
.uadm-card__title {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 59px;
    z-index: 1;
    font-weight: 700;
    font-size: 44px;
    line-height: 53px;
    text-align: center;
    color: #FC5A0C;
    white-space: nowrap;
}

/* 부제목 */
.uadm-card__subtitle {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 121px;
    margin: 0;
    z-index: 1;
    font-weight: 400;
    font-size: 19px;
    line-height: 23px;
    text-align: center;
    color: #000000;
    white-space: nowrap;
}

/* 폼 그룹 묶음 */
.uadm-form {
    position: absolute;
    left: 50px;
    top: 185px;
    width: 400px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 1;
}

.uadm-form__group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 400px;
}

.uadm-form__label {
    font-weight: 600;
    font-size: 18px;
    line-height: 21px;
    color: #000000;
}

.uadm-form__input {
    width: 400px;
    height: 58px;
    padding: 0 16px;
    border: 1px solid #EAEAEA;
    border-radius: 10px;
    font-family: inherit;
    font-size: 18px;
    color: #333;
    outline: none;
    background: #ffffff;
    transition: border-color 0.15s;
}

.uadm-form__input::placeholder {
    color: #AAAAAA;
    font-weight: 400;
}

.uadm-form__input:focus {
    border-color: #FC8125;
}

/* 브라우저 autofill 파란 배경 제거 */
.uadm-form__input:-webkit-autofill,
.uadm-form__input:-webkit-autofill:hover,
.uadm-form__input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0px 1000px #ffffff inset;
    -webkit-text-fill-color: #333;
    transition: background-color 5000s ease-in-out 0s;
}

/* 로그인 버튼 */
.uadm-btn {
    position: absolute;
    width: 400px;
    height: 60px;
    left: 50px;
    top: 387px;
    z-index: 1;
    background: linear-gradient(90.63deg, #FC8125 8.72%, #FA5B0D 106.67%);
    border-radius: 10px;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 22px;
    line-height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: opacity 0.15s;
}

.uadm-btn:hover { opacity: 0.88; }
.uadm-btn:active { opacity: 0.75; }

/* ── 모바일 반응형 (PC 규칙은 위 그대로, 여기서만 재배치) ── */
@media (max-width: 520px) {
    html, body { overflow: auto; height: auto; }
    .uadm-login { height: auto; min-height: 100vh; padding: 40px 18px; align-items: flex-start; }
    .uadm-card-wrap { margin-top: 24px; width: 100%; max-width: 440px; }
    .uadm-card {
        width: 100%; height: auto;
        padding: 36px 22px 32px;
        overflow: visible;
        display: flex; flex-direction: column;
    }
    .uadm-card-glow { display: none; }
    .uadm-card__title {
        position: static; transform: none; top: auto; left: auto;
        font-size: 34px; line-height: 1.2;
    }
    .uadm-card__subtitle {
        position: static; transform: none; top: auto; left: auto;
        margin: 8px 0 26px; font-size: 15px; line-height: 1.4; white-space: normal;
    }
    .uadm-form {
        position: static; left: auto; top: auto; width: 100%;
        gap: 14px;
    }
    .uadm-form__group, .uadm-form__input { width: 100%; }
    .uadm-form__label { font-size: 15px; }
    .uadm-form__input { height: 52px; font-size: 16px; }
    .uadm-btn {
        position: static; left: auto; top: auto; width: 100%;
        margin-top: 24px; height: 54px; font-size: 19px;
    }
}
