﻿/* 전체 카드 메인 컨테이너 */
.split-container {
    display: flex;
    width: 100%;
    max-width: 900px;
    min-height: 520px;
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

/* 좌우 공통 사이드 박스 레이아웃 */
.split-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 50px 40px;
}

.side-content {
    width: 100%;
    max-width: 340px;
}

/* ----------------------------------
 * [좌측] 신규 공모 디자인 (블루톤 배경)
 * ---------------------------------- */
.left-side {
    background: linear-gradient(135deg, #2b5f8e, #1e456b);
    color: #ffffff;
    text-align: center;
}

.side-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    word-break: keep-all;
}

.side-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #e2e8f0;
    margin-bottom: 32px;
    word-break: keep-all;
}


/* ----------------------------------
 * [우측] 공모 조회하기 폼 디자인
 * ---------------------------------- */
.right-side {
    background-color: #ffffff;
}

.subtitle {
    font-size: 13.5px;
    color: #64748b;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

    .input-group label {
        font-size: 13px;
        font-weight: 600;
        color: #334155;
        text-align: left;
        margin-bottom: 0;
    }

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #94a3b8;
    font-size: 14px;
}

.input-wrapper input {
    width: 100%;
    height: 46px;
    padding: 0 14px 0 42px;
    font-size: 14px;
    color: #1e293b;
    background-color: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
}

    .input-wrapper input::placeholder {
        color: #94a3b8;
    }

    .input-wrapper input:focus {
        background-color: #ffffff;
        border-color: #2b5f8e;
        box-shadow: 0 0 0 3px rgba(43, 95, 142, 0.12);
    }

        .input-wrapper input:focus + .input-icon,
        .input-wrapper input:focus ~ .input-icon {
            color: #2b5f8e;
        }

/* 로그인 버튼 */
.btn-login {
    width: 100%;
    background-color: #2b5f8e;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 6px;
    transition: background-color 0.2s ease;
}

    .btn-login:hover {
        background-color: #1e456b;
    }


/* ----------------------------------
 * 반응형 (모바일 화면 대응)
 * ---------------------------------- */
@media (max-width: 768px) {
    .split-container {
        flex-direction: column-reverse; /* 모바일에서는 로그인 폼이 위에 오도록 설정 */
        max-width: 420px;
        min-height: auto;
    }

    .split-side {
        padding: 36px 24px;
    }

    .left-side {
        padding: 30px 24px;
    }

    .side-title {
        font-size: 20px;
    }

    .side-desc {
        font-size: 13px;
        margin-bottom: 20px;
    }
}


.text-danger {
    color: #fff;
    background-color: #cd201f;
}

/* 전체 에러 요약 컨테이너 */
.validation-summary-errors.text-danger {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-left: 4px solid #ef4444;
    border-radius: 6px;
    padding: 14px 18px;
    margin-bottom: 20px;
    color: #991b1b;
    font-size: 13.5px;
    line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

    /* 요약 제목/헤더 텍스트 (있는 경우) */
    .validation-summary-errors.text-danger span {
        font-weight: 700;
        display: block;
        margin-bottom: 6px;
        color: #7f1d1d;
    }

    /* 내부 리스트 태그 초기화 및 스타일링 */
    .validation-summary-errors.text-danger ul {
        list-style: none;
        padding-left: 0;
        margin: 0;
    }

        /* 개별 에러 항목 (불릿 대신 심볼/대시 표시) */
        .validation-summary-errors.text-danger ul li {
            position: relative;
            padding-left: 14px;
            margin-bottom: 4px;
        }

            .validation-summary-errors.text-danger ul li:last-child {
                margin-bottom: 0;
            }

            .validation-summary-errors.text-danger ul li::before {
                content: "•";
                position: absolute;
                left: 0;
                color: #ef4444;
                font-weight: bold;
            }

/* 에러가 없을 때는 화면에서 완전히 숨김 */
.validation-summary-valid {
    display: none !important;
}

/* ----------------------------------
 * 등록 수정 완료
 * ---------------------------------- */
.complete-container {
    margin: 60px auto;
    padding: 40px 30px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
}

.success-icon-wrapper {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background-color: #ecfdf5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.success-icon {
    width: 36px;
    height: 36px;
    color: #10b981;
}

/* 경고 아이콘 감싸는 원형 배경 */
.warning-icon-wrapper {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    background-color: #fffbeb; /* 연한 노랑/베이지 배경 */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 경고 SVG 아이콘 스타일 */
.warning-icon {
    width: 36px;
    height: 36px;
    color: #f59e0b; /* 주황빛 경고 색상 (Amber) */
}

.complete-title {
    font-size: 24px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.complete-subtitle {
    font-size: 15px;
    color: #64748b;
    margin-bottom: 32px;
}

/* 등록 정보 요약 카드 */
.summary-card {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 32px;
    text-align: left;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14px;
    border-bottom: 1px solid #edf2f7;
}

    .summary-item:last-child {
        border-bottom: none;
    }

.summary-label {
    color: #64748b;
    font-weight: 500;
}

.summary-value {
    color: #1e293b;
    font-weight: 600;
    word-break: break-all;
    max-width: 65%;
    text-align: right;
}

/* ----------------------------------
 * 비밀번호 재확인 모달
 * ---------------------------------- */
.auth-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.5);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-modal-card {
    width: 90%;
    max-width: 380px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    overflow: hidden;
}

.auth-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.auth-modal-body {
    padding: 20px;
}

.auth-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 12px 20px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
}

.auth-modal-close {
    font-size: 20px;
    color: #000000;
    cursor: pointer;
}

.auth-modal-form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 14px;
}
