/* =========================================================
   AABW 로그인 페이지 스타일
   - login.php의 인라인 CSS를 분리한 파일입니다.
   - Bootstrap 의존성 없이 현재 화면에 필요한 스타일만 유지합니다.
   - 로그인 상태 유지, 계정 찾기, 비밀번호 재설정 링크를 포함합니다.
========================================================= */

* {
    box-sizing: border-box;
    font-family: 'NanumSquareAc', sans-serif;
}

input,
textarea,
select,
button {
    font: inherit;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 18%, rgba(119, 94, 255, 0.24), transparent 22%),
        radial-gradient(circle at 82% 16%, rgba(0, 209, 255, 0.18), transparent 24%),
        radial-gradient(circle at 50% 82%, rgba(255, 107, 107, 0.12), transparent 24%),
        linear-gradient(145deg, #08101f 0%, #0e1628 35%, #11192b 65%, #09111d 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0.52;
    background:
        linear-gradient(rgba(8, 13, 24, 0.56), rgba(7, 11, 20, 0.78)),
        url('https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.36), rgba(0,0,0,0));
}

.page-shell {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}


.login-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 118px 24px 48px;
}

.login-layout {
    width: min(1180px, 100%);
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 30px;
    align-items: stretch;
}

.hero-panel,
.login-card {
    position: relative;
    overflow: hidden;
    border-radius: 32px;
    background: rgba(14, 20, 34, 0.52);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 24px 70px rgba(0,0,0,0.3);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.hero-panel::before,
.login-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255,255,255,0.09), rgba(255,255,255,0.02));
}

.hero-panel {
    min-height: 620px;
    padding: 42px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.eyebrow {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
    padding: 8px 14px;
    border-radius: 999px;
    color: rgba(255,255,255,0.82);
    font-size: 13px;
    font-weight: 700;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
}

.hero-title {
    margin: 0 0 18px;
    font-size: clamp(42px, 5vw, 66px);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hero-title span {
    display: block;
    background: linear-gradient(90deg, #ffffff 0%, #d7ebff 45%, #8bd7ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    max-width: 560px;
    margin: 0;
    color: rgba(255,255,255,0.74);
    font-size: 17px;
    line-height: 1.8;
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 34px;
}

.hero-mini-card {
    min-height: 132px;
    padding: 18px 18px 16px;
    border-radius: 22px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
}

.mini-label {
    margin-bottom: 10px;
    color: rgba(255,255,255,0.56);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.mini-title {
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 800;
}

.mini-text {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    line-height: 1.65;
}

.hero-footer {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.info-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    color: rgba(255,255,255,0.74);
    font-size: 13px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
}

.login-card {
    min-height: 620px;
    padding: 42px 34px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
}

.login-badge {
    width: 68px;
    height: 68px;
    margin-bottom: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    font-size: 24px;
    font-weight: 800;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.16);
}

.login-title {
    margin: 0 0 10px;
    font-size: 40px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.login-desc {
    margin: 0 0 28px;
    color: rgba(255,255,255,0.72);
    font-size: 16px;
    line-height: 1.8;
}

.error-message {
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 16px;
    color: #fff;
    font-size: 14px;
    line-height: 1.6;
    background: rgba(255, 120, 120, 0.12);
    border: 1px solid rgba(255, 170, 170, 0.24);
}

.input-group-custom {
    position: relative;
    margin-bottom: 18px;
}

.form-label {
    display: block;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.88);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.input-dark {
    width: 100%;
    height: 58px;
    padding: 0 18px;
    border-radius: 18px;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.25;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    outline: none;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.input-dark::placeholder {
    color: rgba(255,255,255,0.38);
    font-size: 16px;
    font-weight: 500;
}

.input-dark:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.22);
}

.input-dark:focus {
    color: #fff;
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
}

.input-dark:-webkit-autofill,
.input-dark:-webkit-autofill:hover,
.input-dark:-webkit-autofill:focus,
.input-dark:-webkit-autofill:active {
    -webkit-text-fill-color: #fff !important;
    caret-color: #fff !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    transition: background-color 9999s ease-out 0s;
    -webkit-box-shadow: 0 0 0 1000px rgba(255,255,255,0.08) inset !important;
    box-shadow: 0 0 0 1000px rgba(255,255,255,0.08) inset !important;
    border: 1px solid rgba(255,255,255,0.16) !important;
}

.password-input {
    color: #fff !important;
    caret-color: #fff !important;
    letter-spacing: 0.08em;
    font-family: Arial, sans-serif !important;
    -webkit-text-fill-color: #fff !important;
}

.login-options {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 30px 0px 10px 0px;
    font-size: 14px;
}

.remember-check {
    min-height: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-input {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #fff;
}

.remember-label,
.login-options a {
    color: rgba(255,255,255,0.78);
    text-decoration: none;
}

.login-options a:hover {
    color: #fff;
}

.login-help-links {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.login-help-divider {
    color: rgba(255,255,255,0.38);
    user-select: none;
}

.btn-login-submit {
    width: 100%;
    height: 58px;
    border: 0;
    border-radius: 18px;
    color: #000;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: 0.02em;
    cursor: pointer;
    background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(235,235,235,0.92));
    box-shadow: 0 14px 34px rgba(255,255,255,0.16);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn-login-submit:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, #ffffff, #f2f2f2);
    box-shadow: 0 18px 40px rgba(255,255,255,0.22);
}

.btn-login-submit:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255,255,255,0.1), 0 18px 40px rgba(255,255,255,0.18);
}

.bottom-text {
    margin-top: 24px;
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

.bottom-text a {
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.bottom-text a:hover {
    text-decoration: underline;
}

.back-link {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 12;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 18px;
    border-radius: 999px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.16);
    background: rgba(255,255,255,0.08);
    box-shadow: 0 12px 28px rgba(0,0,0,0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.28s ease, background 0.28s ease, border-color 0.28s ease;
}

.back-link:hover {
    color: #fff;
    transform: translateY(-2px);
    background: rgba(255,255,255,0.16);
    border-color: rgba(255,255,255,0.22);
}


body.motion-ready .hero-panel {
    animation: revealHeroPanel 0.96s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

body.motion-ready .login-card {
    animation: revealLoginCard 0.96s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

body.motion-ready.back-link {
    animation: revealBackLink 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.34s both;
}


@keyframes revealHeroPanel {
    0% { opacity: 0; transform: translateX(-28px) translateY(16px) scale(0.985); filter: blur(12px); }
    100% { opacity: 1; transform: translateX(0) translateY(0) scale(1); filter: blur(0); }
}

@keyframes revealLoginCard {
    0% { opacity: 0; transform: translateX(28px) translateY(16px); filter: blur(12px); }
    100% { opacity: 1; transform: translateX(0) translateY(0); filter: blur(0); }
}

@keyframes revealBackLink {
    0% { opacity: 0; transform: translateY(14px) translateX(-10px); filter: blur(8px); }
    100% { opacity: 1; transform: translateY(0) translateX(0); filter: blur(0); }
}

@media (prefers-reduced-motion: reduce) {
    .hero-panel,
    .login-card,
   .back-link {
        opacity: 1 !important;
        transform: none !important;
        filter: none !important;
        animation: none !important;
    }
}

@media (max-width: 1080px) {
    body {
        overflow-y: auto;
    }

    .login-layout {
        grid-template-columns: 1fr;
    }

    .hero-panel,
    .login-card {
        min-height: auto;
    }

    .hero-panel {
        padding: 36px 28px;
    }

    .login-card {
        padding: 36px 28px;
    }
}

@media (max-width: 720px) {

    .login-section {
        padding: 104px 16px 90px;
    }

    .hero-panel,
    .login-card {
        border-radius: 26px;
    }

    .hero-panel {
        padding: 28px 22px;
    }

    .login-card {
        padding: 32px 22px;
    }

    .hero-title {
        font-size: 38px;
    }

    .hero-cards {
        grid-template-columns: 1fr;
    }

    .login-title {
        font-size: 32px;
    }

    .login-options {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-help-links {
        justify-content: flex-start;
    }

   .back-link {
        left: 16px;
        bottom: 16px;
    }
}
