<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가
// 폰트 및 외부 라이브러리 추가
add_stylesheet('<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Noto+Sans+KR:wght@300;500&display=swap">', 0);
add_stylesheet('<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">', 0);
?>
<style>
/* 다크 테마 변수 설정 */
:root {
--bg-color: #05060f;
--card-bg: rgba(20, 24, 35, 0.6);
--accent-color: #00d2ff;
--accent-purple: #9d50bb;
--text-color: #e2e8f0;
--glass-border: rgba(255, 255, 255, 0.1);
}
#mb_login {
min-height: 100vh;
background: var(--bg-color);
display: flex;
align-items: center;
justify-content: center;
font-family: 'Noto Sans KR', sans-serif;
color: var(--text-color);
position: relative;
overflow: hidden;
}
/* 배경 애니메이션 오라 */
#mb_login::before {
content: '';
position: absolute;
width: 500px; height: 500px;
background: radial-gradient(circle, rgba(0, 210, 255, 0.15) 0%, transparent 70%);
top: -10%; left: -10%;
animation: move 20s infinite alternate;
}
@keyframes move {
from { transform: translate(0, 0); }
to { transform: translate(100vw, 50vh); }
}
.mbskin_box {
width: 100%;
max-width: 420px;
padding: 40px;
background: var(--card-bg);
backdrop-filter: blur(20px);
-webkit-backdrop-filter: blur(20px);
border: 1px solid var(--glass-border);
border-radius: 24px;
box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
z-index: 10;
animation: fadeIn 0.8s ease-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
#mb_login h1 {
font-family: 'Orbitron', sans-serif;
font-size: 1.8rem;
text-align: center;
margin-bottom: 30px;
background: linear-gradient(to right, var(--accent-color), var(--accent-purple));
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
letter-spacing: 2px;
}
.mb_log_cate {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 20px;
font-size: 0.9rem;
}
.mb_log_cate .join {
color: var(--accent-color);
text-decoration: none;
border: 1px solid var(--accent-color);
padding: 4px 12px;
border-radius: 15px;
transition: 0.3s;
}
.mb_log_cate .join:hover {
background: var(--accent-color);
color: #000;
box-shadow: 0 0 15px var(--accent-color);
}
/* 입력창 디자인 */
#login_fs .frm_input {
width: 100%;
height: 55px;
background: rgba(0, 0, 0, 0.4);
border: 1px solid var(--glass-border);
border-radius: 12px;
margin-bottom: 15px;
padding: 0 20px;
color: #fff;
font-size: 1rem;
transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
box-sizing: border-box;
}
#login_fs .frm_input:focus {
border-color: var(--accent-color);
box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
background: rgba(0, 0, 0, 0.6);
outline: none;
}
/* 로그인 버튼 */
#login_fs .btn_submit {
width: 100%;
height: 55px;
background: linear-gradient(45deg, var(--accent-color), var(--accent-purple));
border: none;
border-radius: 12px;
color: #fff;
font-weight: 700;
font-size: 1.1rem;
cursor: pointer;
transition: 0.4s;
margin-top: 10px;
}
#login_fs .btn_submit:hover {
transform: translateY(-3px);
box-shadow: 0 10px 20px rgba(0, 210, 255, 0.4);
filter: brightness(1.1);
}
/* 하단 옵션 */
#login_info {
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 20px;
font-size: 0.85rem;
color: #94a3b8;
}
.chk_box input[type="checkbox"] {
accent-color: var(--accent-color);
}
#login_info a {
color: #94a3b8;
text-decoration: none;
}
#login_info a:hover {
color: #fff;
}
/* 소셜 로그인 섹션 */
.sns-login {
margin-top: 30px;
padding-top: 20px;
border-top: 1px solid var(--glass-border);
}
/* 비회원 구매/조회 영역 */
#mb_login_notmb, #mb_login_od_wr {
margin-top: 20px;
padding: 20px;
background: rgba(255, 255, 255, 0.05);
border-radius: 15px;
border: 1px dashed var(--glass-border);
}
</style>
<div id="mb_login" class="mbskin">
<div class="mbskin_box">
<h1>LOGIN</h1>
<div class="mb_log_cate">
<h2>SIGN IN</h2>
<a href="<?php echo G5_BBS_URL ?>/register.php" class="join">Create Account</a>
</div>
<form name="flogin" action="<?php echo $login_action_url ?>" onsubmit="return flogin_submit(this);" method="post">
<input type="hidden" name="url" value="<?php echo $login_url ?>">
<fieldset id="login_fs">
<legend class="sound_only">회원로그인</legend>
<input type="text" name="mb_id" id="login_id" required class="frm_input required" placeholder="Username">
<input type="password" name="mb_password" id="login_pw" required class="frm_input required" placeholder="Password">
<button type="submit" class="btn_submit">SIGN IN</button>
<div id="login_info">
<div class="chk_box">
<input type="checkbox" name="auto_login" id="login_auto_login">
<label for="login_auto_login">Stay signed in</label>
</div>
<div class="login_if_lpl">
<a href="<?php echo G5_BBS_URL ?>/password_lost.php">Forgot Access?</a>
</div>
</div>
</fieldset>
</form>
<div class="sns-login">
<?php @include_once(get_social_skin_path().'/social_login.skin.php'); ?>
</div>
<?php if (isset($default['de_level_sell']) && $default['de_level_sell'] == 1) { ?>
<?php if (preg_match("/orderform.php/", $url)) { ?>
<section id="mb_login_notmb">
<h2 style="font-size:1rem; margin-bottom:10px;">Guest Checkout</h2>
<div id="guest_privacy" style="font-size:0.75rem; height:80px; overflow-y:auto; background:rgba(0,0,0,0.2); padding:10px; margin-bottom:10px;">
<?php echo conv_content($default['de_guest_privacy'], $config['cf_editor']); ?>
</div>
<div class="chk_box" style="font-size:0.8rem; margin-bottom:15px;">
<input type="checkbox" id="agree" value="1">
<label for="agree">I agree to the privacy policy.</label>
</div>
<a href="javascript:guest_submit(document.flogin);" class="btn_submit" style="display:block; text-align:center; text-decoration:none; line-height:55px;">Guest Purchase</a>
</section>
<?php } ?>
<?php } ?>
</div>
</div>
<script>
jQuery(function($){
// 자동로그인 경고 애니메이션 효과 포함
$("#login_auto_login").click(function(){
if (this.checked) {
this.checked = confirm("자동로그인을 사용하시면 다음부터 회원아이디와 비밀번호를 입력하실 필요가 없습니다.\n\n공공장소에서는 개인정보가 유출될 수 있으니 사용을 자제하여 주십시오.\n\n자동로그인을 사용하시겠습니까?");
}
});
// 입력창 포커스 시 배경 광원 효과 추가 제어 (옵션)
$(".frm_input").on("focus", function(){
$(this).closest(".mbskin_box").css("box-shadow", "0 0 30px rgba(0, 210, 255, 0.2)");
}).on("blur", function(){
$(this).closest(".mbskin_box").css("box-shadow", "0 25px 50px rgba(0, 0, 0, 0.5)");
});
});
function flogin_submit(f) {
if( $( document.body ).triggerHandler( 'login_sumit', [f, 'flogin'] ) !== false ){
return true;
}
return false;
}
function guest_submit(f) {
if (document.getElementById('agree')) {
if (!document.getElementById('agree').checked) {
alert("개인정보수집에 대한 내용을 읽고 이에 동의하셔야 합니다.");
return;
}
}
f.url.value = "<?php echo $url; ?>";
f.action = "<?php echo $url; ?>";
f.submit();
}
</script>