/* 전체 배경 */
.login-wrapper {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background:
        linear-gradient(135deg, rgba(13, 47, 38, 0.45), rgba(42, 156, 121, 0.22)),
        url("/static/style/5/login.jpg") center / cover no-repeat;
}

/* 카드 */
.login-card {
    width: 420px;
    padding: 50px 40px;
    border-radius: 18px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.7);
    box-shadow: 0 24px 60px rgba(13, 47, 38, 0.18);
    text-align: center;
}

/* 제목 */
.login-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

/* 설명 */
.login-desc {
    font-size: 13px;
    color: #888;
    margin-bottom: 30px;
}

/* 폼 */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 입력 */
.input-group {
    text-align: left;
}

.input-group label {
    font-size: 12px;
    margin-bottom: 6px;
    display: block;
    color: #666;
}

.input-group input {
    width: 100%;
    border: none;
    border-bottom: 2px solid #eee;
    padding: 10px 0;
    font-size: 14px;
    background: transparent;
    outline: none;
}

.input-group input:focus {
    border-color: #2a9c79;
}

/* 비밀번호 */
.password-wrap {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 0;
    top: 8px;
    border: none;
    background: none;
    cursor: pointer;
}

/* 버튼 */
.login-btn {
    margin-top: 20px;
    height: 45px;
    border-radius: 25px;
    border: none;
    background: linear-gradient(135deg, #2a9c79, #1e7f63);
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.login-btn:hover {
    opacity: 0.9;
}

/* 로고 */
.logo-area {
    margin-top: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.logo-area img {
    width: 20px;
}

/* Template 5: asymmetric login shell */
.login-wrapper {
    position: relative;
    justify-content: flex-end;
    padding: 56px 9vw;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(9, 42, 35, 0.86) 0%, rgba(9, 42, 35, 0.64) 42%, rgba(237, 246, 242, 0.92) 42%, rgba(237, 246, 242, 0.96) 100%),
        url("/static/style/5/login.jpg") left center / cover no-repeat;
}

.login-wrapper::before {
    content: "";
    position: absolute;
    left: 7vw;
    top: 12vh;
    width: min(430px, 38vw);
    height: min(430px, 38vw);
    border: 1px solid rgba(110, 224, 189, 0.38);
    background:
        linear-gradient(90deg, rgba(110, 224, 189, 0.18) 1px, transparent 1px),
        linear-gradient(0deg, rgba(110, 224, 189, 0.18) 1px, transparent 1px);
    background-size: 34px 34px;
}

.login-wrapper::after {
    content: "";
    position: absolute;
    left: 12vw;
    bottom: 13vh;
    width: 150px;
    height: 10px;
    background: #2a9c79;
    box-shadow: 44px 24px 0 rgba(110, 224, 189, 0.48), 88px 48px 0 rgba(255,255,255,0.18);
}

.login-card {
    position: relative;
    z-index: 1;
    width: min(430px, 100%);
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #cfe7df;
    box-shadow: 0 28px 70px rgba(16, 58, 49, 0.18);
    text-align: left;
}

.login-visual-brand {
    position: absolute;
    left: 8vw;
    top: 24vh;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(480px, 38vw);
    height: min(360px, 32vw);
    background: transparent;
}

.login-visual-brand img {
    width: min(360px, 30vw);
    height: min(360px, 30vw);
    border-radius: 28px;
    background: transparent;
    object-fit: contain;
    padding: 0;
    box-shadow: none;
    filter: drop-shadow(0 30px 48px rgba(4, 10, 32, 0.34));
}

.login-title {
    color: #103a31;
    font-size: 30px;
    font-weight: 900;
}

.input-group input {
    border: 1px solid #cfe7df;
    border-radius: 6px;
    padding: 12px 12px;
}

.login-btn {
    border-radius: 6px;
    background: #2a9c79;
    box-shadow: 0 12px 24px rgba(42, 156, 121, 0.22);
}

@media (max-width: 760px) {
    .login-wrapper {
        justify-content: center;
        padding: 28px 18px;
        background:
            linear-gradient(180deg, rgba(9, 42, 35, 0.72), rgba(237, 246, 242, 0.96)),
            url("/static/style/5/login.jpg") center / cover no-repeat;
    }

    .login-wrapper::before,
    .login-wrapper::after,
    .login-visual-brand {
        display: none;
    }
}

/* Template 5 login refresh */
.login-wrapper {
    background:
        linear-gradient(90deg, rgba(14, 18, 58, 0.9) 0%, rgba(14, 18, 58, 0.62) 42%, rgba(238, 242, 255, 0.94) 42%, rgba(248, 251, 255, 0.98) 100%),
        url("/static/style/5/login.jpg") left center / cover no-repeat;
}

.login-wrapper::before {
    display: none;
}

.login-wrapper::after {
    background: var(--t5-primary);
    box-shadow: 44px 24px 0 rgba(6, 182, 212, 0.46), 88px 48px 0 rgba(255,255,255,0.18);
}

.login-card {
    border-color: var(--t5-line);
    box-shadow: 0 28px 70px rgba(22, 23, 47, 0.2);
}

.login-title {
    color: var(--t5-ink);
}

.input-group input {
    border-color: var(--t5-line);
}

.input-group input:focus {
    border-color: var(--t5-primary);
}

.login-btn {
    background: linear-gradient(135deg, var(--t5-primary), var(--t5-accent));
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.24);
}

@media (max-width: 760px) {
    .login-wrapper {
        background:
            linear-gradient(180deg, rgba(14, 18, 58, 0.78), rgba(238, 242, 255, 0.96)),
            url("/static/style/5/login.jpg") center / cover no-repeat;
    }
}
