html, body {
    margin: 0;
    padding: 0;
    font-family: "Malgun Gothic", Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
}

body {
    min-height: 100vh;
}

* {
    box-sizing: border-box;
}

a {
    color: inherit;
    text-decoration: none;
}

button, input {
    font: inherit;
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 28px;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.brand-group {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.brand-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.brand-text {
    min-width: 0;
}

.brand-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.brand-subtitle {
    margin: 4px 0 0;
    color: var(--color-muted);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.service-logo {
    height: 28px;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.page-wrap {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 40px 24px 56px;
    flex: 1;
}

.card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.card-body {
    padding: 32px;
}

.form-group + .form-group {
    margin-top: 18px;
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 700;
}

.form-link {
    font-size: 13px;
    color: var(--color-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: #ffffff;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
    border-color: #93c5fd;
    box-shadow: 0 0 0 4px rgba(29, 143, 225, 0.12);
}

.checkbox-row {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-text);
}

.notice-box {
    margin-top: 20px;
    border: 1px solid var(--color-warning-border);
    background: var(--color-warning-bg);
    border-radius: 16px;
    padding: 16px;
    color: #9a3412;
    font-size: 14px;
    line-height: 1.7;
}

.btn-row {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.sub-link-row {
    margin-top: 24px;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--color-muted);
}

.sub-link-row a {
    text-decoration: underline;
    text-underline-offset: 3px;
}


.app-footer {
    border-top: 1px solid var(--color-border);
    background: #fff;
    padding: 16px 24px;
}

.footer-inner {
    max-width: var(--container-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-company {
    font-weight: 700;
    font-size: 14px;
}

.footer-copy {
    margin-top: 4px;
    color: var(--color-muted);
    font-size: 12px;
}

.footer-right {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.footer-link {
    font-size: 13px;
    color: var(--color-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.menu-btn {
    display: block;
    width: 100%;
    text-align: left;
    border: 1px solid var(--color-border);
    background: #fff;
    border-radius: 16px;
    padding: 12px 14px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.menu-btn.active {
    border-color: #93c5fd;
    background: #eff6ff;
    color: #1d4ed8;
}