@charset "utf-8";

/* 로그인/회원가입 공통 */
.login_wrap,
.register_wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 20px;
    margin-top: -40px;
}

.login_box,
.register_box {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 500px;
    transition: transform 0.3s ease;
}

.login_box:hover,
.register_box:hover {
    transform: translateY(-5px);
}

.login_header,
.register_header {
    text-align: center;
    margin-bottom: 30px;
}

.login_logo,
.register_logo {
    font-size: 28px;
    font-weight: 700;
    color: #0072bc;
    margin-bottom: 10px;
}

.login_welcome,
.register_welcome {
    color: #666;
    font-size: 16px;
    margin: 0;
}

.login_inner,
.register_inner {
    margin-top: 20px;
}

/* 약관 동의 */
.agree_box {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
}

.agree_title {
    margin-bottom: 15px;
}

.agree_title .agree_text {
    font-size: 16px;
    font-weight: 600;
    color: #0072bc;
}

.agree_content {
    padding: 15px;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: #666;
    max-height: 150px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.agree_check {
    padding: 10px 0;
}

.agree_label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.agree_label input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #adb5bd;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s;
}

.agree_label input[type="checkbox"]:checked + .checkmark {
    background: #0072bc;
    border-color: #0072bc;
}

.agree_label input[type="checkbox"]:checked + .checkmark:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.agree_label span {
    color: #495057;
    font-size: 14px;
}

.btn_confirm {
    margin: 30px 0 20px;
}

/* 폼 요소 */
.form_group {
    margin-bottom: 20px;
}

.input_with_icon {
    position: relative;
}

.input_with_icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #adb5bd;
    font-size: 18px;
}

.form_input {
    width: 100%;
    height: 50px;
    padding: 0 20px 0 45px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s;
    background: #f8f9fa;
}

.form_input:focus {
    border-color: #0072bc;
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0,114,188,0.1);
}

.frm_info {
    display: block;
    margin-top: 8px;
    color: #868e96;
    font-size: 13px;
    padding-left: 5px;
}

/* 인증번호 입력 */
.auth_box {
    display: flex;
    gap: 10px;
}

.cert_input {
    flex: 1;
}

.btn_cert {
    height: 50px;
    padding: 0 20px;
    background: #0072bc;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
}

.btn_cert:hover {
    background: #005a95;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,114,188,0.3);
}

/* 자동 로그인 */
.login_auto {
    margin: 15px 0;
}

.auto_login_label {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.auto_login_label input[type="checkbox"] {
    display: none;
}

.auto_login_label .checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #adb5bd;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s;
    background: #fff;
}

.auto_login_label input[type="checkbox"]:checked + .checkmark {
    background: #0072bc;
    border-color: #0072bc;
}

.auto_login_label input[type="checkbox"]:checked + .checkmark:after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.auto_login_label span {
    color: #495057;
    font-size: 14px;
}

/* 버튼 */
.btn_submit {
    width: 100%;
    height: 50px;
    background: #0072bc;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 114, 188, 0.2);
}

.btn_submit:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s ease;
}

.btn_submit:hover {
    background: #005a96;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 114, 188, 0.3);
}

.btn_submit:hover:before {
    left: 100%;
}

.btn_submit i {
    margin-right: 8px;
    font-size: 18px;
}

.btn_submit:disabled {
    background: #adb5bd;
    cursor: not-allowed;
    box-shadow: none;
}

.btn_submit:disabled:hover {
    transform: none;
}

.btn_submit:disabled:before {
    display: none;
}

/* 링크 */
.login_links {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 25px;
}

.login_links a {
    display: flex;
    align-items: center;
    color: #495057;
    text-decoration: none;
    font-size: 14px;
    padding: 8px 15px;
    border-radius: 8px;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.login_links a i {
    margin-right: 6px;
    font-size: 14px;
    color: #0072bc;
}

.login_links a:hover {
    background: #0072bc;
    color: #fff;
    transform: translateY(-2px);
}

.login_links a:hover i {
    color: #fff;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .login_wrap,
    .register_wrap {
        padding: 40px 20px;
    }
    
    .login_box,
    .register_box {
        padding: 30px;
        max-width: 100%;
    }
    
    .login_logo,
    .register_logo {
        font-size: 24px;
    }
    
    .form_input,
    .btn_submit {
        height: 45px;
        font-size: 15px;
    }
    
    .login_links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

.register_box .login_link {
    display: inline-flex;
    align-items: center;
    color: #0072bc;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-top: 20px;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(0, 114, 188, 0.1);
    transition: all 0.3s ease;
}

.register_box .login_link i {
    margin-right: 6px;
    font-size: 14px;
}

.register_box .login_link:hover {
    background: #0072bc;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 114, 188, 0.2);
}

.register_box .login_link:hover i {
    color: #fff;
}

.register_links {
    text-align: center;
    margin-top: 20px;
}

.register_links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 50px;
    background: #f8f9fa;
    color: #0072bc;
    border: 2px solid #0072bc;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.register_links a i {
    margin-right: 8px;
    font-size: 18px;
}

.register_links a:hover {
    background: #0072bc;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 114, 188, 0.2);
}

.register_links a:before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s ease;
}

.register_links a:hover:before {
    left: 100%;
} 