* {
    box-sizing: border-box;
}

:root {
    --bg: #f4f7f4;
    --surface: rgba(255, 255, 255, 0.92);
    --surface-solid: #ffffff;
    --text: #1f2a23;
    --text-sub: #6a776f;
    --line: #dfe7e1;
    --line-strong: #cfd9d2;

    --primary: #2f855a;
    --primary-dark: #256b48;
    --primary-soft: #e9f5ee;

    --danger-bg: #fff1f1;
    --danger-text: #d64545;
    --success-text: #1f8b4c;

    --shadow-lg: 0 24px 60px rgba(21, 38, 28, 0.1);
    --shadow-md: 0 16px 34px rgba(21, 38, 28, 0.12);
    --shadow-sm: 0 8px 20px rgba(21, 38, 28, 0.06);
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Pretendard", "Noto Sans KR", Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.is-hidden {
    display: none !important;
}

.login-page {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    background:
            radial-gradient(circle at top left, rgba(47, 133, 90, 0.1), transparent 26%),
            linear-gradient(180deg, #f7faf7 0%, #eef4ef 100%);
}

.login-page__bg {
    position: absolute;
    inset: 0;
    background:
            radial-gradient(circle at 85% 18%, rgba(47, 133, 90, 0.1), transparent 18%),
            radial-gradient(circle at 12% 78%, rgba(124, 176, 142, 0.14), transparent 18%);
    pointer-events: none;
}

.login-layout {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    padding: 28px 24px;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 28px;
    align-items: center;
}

.login-hero {
    padding: 20px 10px;
}

.login-hero__brand-link {
    display: inline-flex;
    line-height: 1;
}

.login-hero__brand-text {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 156px;
    height: 54px;
    padding: 0 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-sm);
    color: var(--primary-dark);
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.login-hero__content {
    margin-top: 24px;
    max-width: 560px;
}

.login-hero__eyebrow {
    margin: 0 0 12px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.login-hero__title {
    margin: 0;
    font-size: 48px;
    line-height: 1.14;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.login-hero__description {
    margin: 18px 0 0;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-sub);
    word-break: keep-all;
}

.login-hero__features {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.feature-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 17px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
}

.feature-card__icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-soft);
    font-size: 21px;
}

.feature-card__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.feature-card__text strong {
    font-size: 15px;
    font-weight: 800;
}

.feature-card__text span {
    font-size: 13px;
    color: var(--text-sub);
    line-height: 1.55;
    word-break: keep-all;
}

.login-panel {
    display: flex;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 460px;
    padding: 30px 28px;
    border-radius: 28px;
    background: var(--surface);
    border: 1px solid rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(16px);
}

.login-card__header {
    margin-bottom: 30px;
}

.login-card__eyebrow {
    margin: 0 0 6px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.6px;
}

.login-card__title {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.login-card__description {
    margin: 8px 0 0;
    color: var(--text-sub);
    font-size: 13px;
    line-height: 1.55;
    word-break: keep-all;
}

.alert {
    padding: 12px 14px;
    border-radius: 12px;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
}

.alert--error {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
}

.form-inline {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    align-items: center;
}

.form-input {
    width: 100%;
    height: 46px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.97);
    outline: none;
    font-size: 14px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form-input::placeholder {
    color: #97a49c;
}

.form-input:focus {
    border-color: rgba(47, 133, 90, 0.42);
    box-shadow: 0 0 0 4px rgba(47, 133, 90, 0.1);
    background: #ffffff;
}

.input-error {
    border-color: rgba(214, 69, 69, 0.7);
    box-shadow: 0 0 0 4px rgba(214, 69, 69, 0.08);
}

.field-error {
    margin-top: 2px;
    padding-left: 2px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--danger-text);
}

.field-success {
    margin-top: 2px;
    padding-left: 2px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--success-text);
}

.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    transition: transform 0.18s ease, opacity 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.login-button:hover {
    transform: translateY(-1px);
    opacity: 0.98;
}

.login-button:active {
    transform: translateY(0);
}

.login-button:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.login-button--secondary {
    min-width: 108px;
    height: 46px;
    padding: 0 14px;
    background: var(--surface-solid);
    border: 1px solid var(--line-strong);
    color: var(--primary-dark);
    white-space: nowrap;
}

.login-button--secondary:hover {
    border-color: rgba(47, 133, 90, 0.42);
    background: #f8fcf9;
}

.login-button--secondary.is-complete {
    background: #eef6f1;
    color: #5d6b63;
    border-color: #d5dfd8;
}

.login-button--submit {
    width: 100%;
    height: 56px;
    margin-top: 20px;
    background: linear-gradient(135deg, #2f855a 0%, #256b48 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
    box-shadow: 0 16px 28px rgba(47, 133, 90, 0.24);
}

.login-button--submit:hover {
    box-shadow: 0 18px 30px rgba(47, 133, 90, 0.28);
}

.login-card__footer {
    margin-top: 18px;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--text-sub);
}

.login-card__signup-link {
    color: var(--primary);
    font-weight: 700;
}

input[type="hidden"] {
    display: none;
}

.form-input:disabled {
    background: #f3f5f4;
    color: #718076;
    cursor: not-allowed;
}
