/* 전체 레이아웃 */
body {
    background-color: #f4f4f4;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

body.login-page {
    padding: 32px;
    background:
        radial-gradient(circle at top left, rgba(22, 119, 255, 0.10), transparent 30%),
        radial-gradient(circle at bottom right, rgba(148, 163, 184, 0.18), transparent 34%),
        linear-gradient(135deg, #f8fbff 0%, #f8fafc 52%, #eef4ff 100%);
}

.login-shell {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(360px, 1.15fr) minmax(360px, 0.85fr);
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 28px;
    overflow: hidden;
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.10);
}

.login-visual {
    background:
        radial-gradient(circle at top, rgba(22, 119, 255, 0.08), transparent 38%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    padding: 40px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 640px;
    border-right: 1px solid rgba(148, 163, 184, 0.14);
}

.login-visual__image {
    width: 100%;
    max-width: 620px;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.08));
}

.login-container, .notification-container, .form-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 400px;
    text-align: center;
}

body.login-page .login-container {
    width: auto;
    min-height: 640px;
    border-radius: 0;
    box-shadow: none;
    padding: 56px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
    background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%);
}

.login-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.login-brand__logo {
    width: 46px;
    height: 46px;
    object-fit: contain;
    flex-shrink: 0;
}

.login-brand__title {
    display: inline-flex;
    align-items: baseline;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}

.login-brand__event {
    color: #0f172a;
}

.login-brand__beacon {
    color: #1677ff;
}

body.login-page .login-container h2 {
    margin: 0;
    font-size: 30px;
    color: #0f172a;
}

.login-subtitle {
    margin: 10px 0 24px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

body.login-page .login-container form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

body.login-page .login-container button[type="submit"] {
    margin-top: 10px;
    height: 48px;
    border-radius: 10px;
    background: linear-gradient(135deg, #1677ff 0%, #0f5fe0 100%);
    box-shadow: 0 14px 28px rgba(22, 119, 255, 0.22);
}

body.login-page .login-container button[type="submit"]:hover {
    background: linear-gradient(135deg, #0f5fe0 0%, #0a4fc2 100%);
}

/* 입력 필드 스타일 */
input[type="text"], input[type="password"], input[type="email"], input[type="number"], textarea, select {
    width: 100%;
    padding: 12px 15px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

input[type="text"]:focus, input[type="password"]:focus, textarea:focus, select:focus {
    border-color: #0052cc;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 82, 204, 0.5);
}

.password-policy-help {
    margin: 0 0 14px;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}


/* 컨테이너 */
.container {
    background-color: #ffffff;
    padding: 30px;
    width: 80%;
    max-width: 1000px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}



/* 테이블 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    font-size: 16px;
}

th, td {
    padding: 12px 15px;
    text-align: left;
}

/* 테이블 헤더 - 회색 계열 */
th {
    background-color: #e0e0e0;  /* 밝은 회색 */
    color: #333;
    font-weight: bold;
    border-bottom: 2px solid #ccc;
    text-align: center;
}

/* 짝수 행 배경색 */
tr:nth-child(even) {
    background-color: #f9f9f9;
}

tr:hover {
    background-color: #eaeaea;
}

/* 버튼 스타일 - 회색 계열 */
button, a.button {
    padding: 8px 12px;
    background-color: #bdbdbd;  /* 회색 버튼 */
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

button:hover, a.button:hover {
    background-color: #9e9e9e;  /* 짙은 회색 */
    transform: translateY(-2px);
}

button:active, a.button:active {
    transform: translateY(0);
}

/* 버튼 오른쪽 정렬 */
td.actions {
    text-align: right;
}

/* 팝업 */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.popup-content {
    background-color: #fff;
    width: 400px;
    padding: 20px;
    border-radius: 10px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    text-align: center;
}


/* ✅ 성공 메시지 */
.popup-content.success {
    background-color: #d1e7dd;
    color: #0f5132;
}

/* ✅ 정보 메시지 */
.popup-content.info {
    background-color: #cff4fc;
    color: #055160;
}

/* ✅ 경고 메시지 */
.popup-content.warning {
    background-color: #fff3cd;
    color: #664d03;
}

/* ✅ 에러 메시지 */
.popup-content.danger {
    background-color: #f8d7da;
    color: #842029;
}

/* ✅ 플래시 메시지 기본 스타일 */
.alert {
    padding: 12px 15px;
    border-radius: 6px;
    margin-top: 15px;
    font-size: 14px;
    font-weight: bold;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* ✅ 성공 메시지 (초록색) */
.alert.success {
    background-color: #d1e7dd;
    color: #0f5132;
    border-left: 6px solid #0f5132;
}

/* ✅ 정보 메시지 (파란색) */
.alert.info {
    background-color: #cff4fc;
    color: #055160;
    border-left: 6px solid #055160;
}

/* ✅ 경고 메시지 (노란색) */
.alert.warning {
    background-color: #fff3cd;
    color: #664d03;
    border-left: 6px solid #664d03;
}

/* ✅ 오류 메시지 (빨간색) */
.alert.danger {
    background-color: #f8d7da;
    color: #842029;
    border-left: 6px solid #842029;
}


/* ✅ 버튼을 오른쪽 정렬 */
.button-container {
    text-align: right;
    margin-bottom: 15px;
}

@media (max-width: 960px) {
    body.login-page {
        padding: 20px;
    }

    .login-shell {
        grid-template-columns: 1fr;
    }

    .login-visual {
        min-height: 280px;
        padding: 28px 24px 12px;
    }

    body.login-page .login-container {
        min-height: auto;
        padding: 36px 26px;
    }

    .login-brand__title {
        font-size: 30px;
    }
}
