@charset "utf-8";

.auth-card     { background: #fff; border: 1px solid #efefef; border-radius: 20px; padding: 3rem 6rem; box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.auth-card.wide { max-width: 660px; margin-left: auto; margin-right: auto; }
.auth-title    { text-align: center; color: #111; font-weight: 800; font-size: 2.2rem; line-height: 1.1; letter-spacing: -1px; margin: 8px 0px;}
.auth-sub      { margin: 0 0 24px; font-size: 15px; color: #888; text-align: center;}
.auth-form .row { margin-bottom: 16px; }
.auth-form label { display: block; margin-bottom: 6px; font-weight: 500; color: #444; font-size: 14px; }
.auth-form .req::after { content: ' *'; color: #e74c3c; font-weight: 700; }
.auth-form input[type=text], .auth-form input[type=email], .auth-form input[type=tel],
.auth-form input[type=url], .auth-form input[type=number], .auth-form input[type=date],
.auth-form input[type=password], .auth-form select, .auth-form textarea {
    width: 100%; padding: 14px 13px; border: 1px solid #ebebeb; border-radius: 6px;
    box-sizing: border-box; transition: border-color .15s; font-size: 16px;
}
.auth-form input:focus, .auth-form select:focus, .auth-form textarea:focus {
    outline: none; border-color: #3498db;
}
.auth-form textarea { min-height: 90px; resize: vertical; }
.auth-form .help    { margin-top: 4px; font-size: 14px; color: #a3a3a3; }
.auth-form .opts    { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 6px 0; }
.auth-form .opts label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 400; cursor: pointer; }
.auth-form .opts input { width: auto; }
.auth-actions { margin-top: 26px; display: flex; flex-direction: column; gap: 8px; }
.auth-btn     { display: inline-block; width: 100%; padding: 17px 18px; border-radius: 6px; border: 0;
                font-size: 17px; font-weight: 700; cursor: pointer; text-align: center; text-decoration: none; }
.auth-btn.primary { background: #2c3e50; color: #fff; }
.auth-btn.primary:hover { background: #1f2c39; }
.auth-btn.secondary { background: #f1f3f5; color: #333; }
.auth-btn.danger    { background: #c0392b; color: #fff; }
.auth-links   { margin-top: 18px; padding-top: 18px; border-top: 1px solid #eef0f3; display: flex; justify-content: space-between; font-size: 16px; }
.auth-links a { color: #555; text-decoration: none; }
.auth-links a:hover { text-decoration: underline; }
.auth-flash   { padding: 12px 14px; border-radius: 6px; margin-bottom: 18px; font-size: 14px; }
.auth-flash.success { background: #f3f7f9;  color: #2c3e50; border: 1px solid #e4eaef; }
.auth-flash.error   { background: #fdecea; color: #b71c1c; border: 1px solid #f5c6cb; }
.auth-flash.info    { background: #eff5ed; color: #135720; border: 1px solid #cae1cb; }
.auth-flash.warning { background: #fff8e1; color: #8a6d00; border: 1px solid #f7e1a0; }
.auth-info-box { background: #f8f9fa;
    border-left: 3px solid #2c3e50;
    border-right: 3px solid #2c3e50;
    padding: 18px 16px;
    border-radius: 6px;
    font-size: 15px;
    color: #555;
    margin-bottom: 18px; }
.muted { color: #888; }

@media (max-width: 768px) {
    .auth-card     { padding: 2.5rem 2rem;  }
}

/* ── miracell 스타일 (login 전용 / 디자인) ─────────────────────── */
.auth-card.login-mc {
    max-width: 480px; margin: 0 auto; padding: 1.5rem 1rem 4rem;
    background: transparent; border: 0; border-radius: 0; box-shadow: none;
}
.login-mc .auth-title {
    text-align: center; color: #111; font-weight: 800;
    font-size: 2.2rem; line-height: 1.1; letter-spacing: -1px;
    margin: 8px 0px;
}

.login-mc .auth-form .f_form { margin-bottom: 14px; }
/* 라벨은 접근성 위해 유지하되 화면에서는 숨김 */
.login-mc .auth-form .f_form > label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.login-mc .auth-form .field { position: relative; }
.login-mc .auth-form .field .field-ico {
    position: absolute; left: 20px; top: 50%; transform: translateY(-50%);
    color: #1d1d1d; pointer-events: none;
    font-size: 24px; line-height: 1;
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}
.login-mc .auth-form input[type=text],
.login-mc .auth-form input[type=password] {
    width: 100%; height: 64px; padding: 0 20px 0 60px;
    background: #f4f4f4 !important; border: 0; border-radius: 6px;
    font-size: 16px; color: #222; box-sizing: border-box;
    transition: background .15s, box-shadow .15s;
}
.login-mc .auth-form input::placeholder { color: #9a9a9a; }
.login-mc .auth-form input:focus {
    outline: none; background: #efefef; box-shadow: inset 0 0 0 1px #ddd;
}
/* member.css의 .login-mc 블록 안에 추가 */
.auth-form input:-webkit-autofill,
.auth-form input:-webkit-autofill:hover,
.auth-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: #222;                 /* 글자색 */
    -webkit-box-shadow: 0 0 0 1000px #f4f4f4 inset; /* 배경을 #f4f4f4로 덮음 */
    box-shadow: 0 0 0 1000px #f4f4f4 inset;
    transition: background-color 9999s ease-out 0s; /* 파란 배경 페이드 차단 */
}
.auth-form input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px #efefef inset;
    box-shadow: 0 0 0 1000px #efefef inset;
}

.login-mc .auth-actions { margin-top: 24px; gap: 12px; }
.login-mc .auth-btn {
    display: flex; align-items: center; justify-content: center;
    height: 64px; padding: 0; border-radius: 6px;
    font-size: 17px; font-weight: 700;
}
.login-mc .auth-btn.primary { background: #2c3e50; color: #fff; margin: 0;}
.login-mc .auth-btn.primary:hover { background: #000;}
.login-mc .auth-btn.secondary { background: #fff; color: #2c3e50; border: 1px solid #2c3e50; }
.login-mc .auth-btn.secondary:hover { background: #f7f7f7; }

.login-mc .auth-links {
    justify-content: center; gap: 0;
    margin-top: 28px; padding-top: 0; border-top: 0;
}
.login-mc .auth-links a {
    position: relative; padding: 0 18px;
    color: #9a9a9a; font-size: 15px; font-weight: 500;
}
.login-mc .auth-links a + a::before {
    content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 1px; height: 12px; background: #d8d8d8;
}

@media (max-width: 500px) {
    .login-mc .auth-title { font-size: 40px; }
    .login-mc .auth-form input[type=text],
    .login-mc .auth-form input[type=password] { height: 56px; }
    .login-mc .auth-btn { height: 56px; font-size: 16px; }
}

/* ── 마이페이지 (mypage) ───────────────────────────────────────── */
.mypage-section { font-size: 16px; padding: 32px 0 12px; color: #2c3e50; border-bottom: 1px solid #2c3e50;
margin-bottom: 0; }
.mypage-table   { width: 100%; border-collapse: collapse; font-size: 14px; }
.mypage-table th {
    text-align: left; padding: 10px; background: #f8f9fa; width: 140px;
}
.mypage-table td { padding: 10px; border-bottom: 1px solid #eee; white-space: pre-wrap; }
.mypage-table tr:last-child td { border-bottom: 0; }
.mypage-judge-btn { display: block; text-align: center; margin: 16px 0; text-decoration: none; }
.auth-link-danger { color: #c0392b; }
/* ── 회원가입 이메일 인증 위젯 ── */
.email-verify {
    margin-top: 10px; text-align: left;
    display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
}
.email-verify .auth-btn.btn-email-send {
    display: inline-block; width: auto; min-width: 0; margin: 0;
    padding: 11px 18px; font-size: 14px; align-self: flex-start;
}
.email-verify-code { display: flex; align-items: center; gap: 8px; }
.email-verify-code .email-verify-code-input {
    width: auto; flex: 0 0 200px; margin: 0; padding: 11px 12px; letter-spacing: 2px;
}
.email-verify-code .auth-btn.btn-email-verify {
    display: inline-block; width: auto; min-width: 0; margin: 0;
    padding: 11px 18px; font-size: 14px;
}
.email-verify-msg { margin-top: 6px; font-size: 13px; }
.email-verify-hint { margin-top: 4px; }
