/* ===== Login Page ===== */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--login-bg) url('/images/login-bg.png') center/cover no-repeat;
    position: relative;
    overflow: hidden;
}

.login-card {
    display: flex;
    background: var(--bg-card);
    border-radius: 24px;
    width: 100%;
    max-width: 960px;
    min-height: 640px;
    box-shadow: 0 12px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    position: relative;
    z-index: 1;
}

.login-left {
    flex: 1.1;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 40px;
    border-radius: 16px;
    margin: 10px;
    position: relative;
    overflow: hidden;
    background: var(--login-panel-bg) url('/images/login-panel.png') center/cover no-repeat;
}

.login-logo {
    position: relative;
    z-index: 1;
}

.login-logo h1 {
    font-size: 48px;
    font-weight: 900;
    font-style: italic;
    color: var(--neutral-0);
    margin: 0;
    letter-spacing: -2px;
    line-height: 1;
}

.login-logo p {
    font-size: 32px;
    font-weight: 300;
    color: var(--mint-40);
    margin: 2px 0 0 2px;
    letter-spacing: 1px;
}

.login-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px;
}

.login-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 28px;
}

.login-form .form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.login-form .form-control {
    border: 1px solid var(--neutral-15);
    border-radius: 8px;
    padding: 11px 14px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.login-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.15);
}

.login-form .form-control::placeholder {
    color: var(--text-placeholder);
}

.btn-login {
    width: 100%;
    padding: 13px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-login-primary {
    background-color: var(--neutral-90);
    color: var(--neutral-0);
}

.btn-login-primary:hover {
    background-color: var(--neutral-100);
    color: var(--neutral-0);
}

.login-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 20px;
}

.login-links a {
    font-size: 13px;
    color: var(--neutral-40);
    text-decoration: none;
    transition: color 0.2s;
}

.login-links a:hover {
    color: var(--text-primary);
}

.login-links-divider {
    font-size: 12px;
    color: var(--neutral-20);
}

.alert-error-login {
    background-color: #FFF0F0;
    color: var(--red-70);
    border: 1px solid #FFD6D6;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
        max-width: 420px;
        min-height: auto;
        margin: 16px;
    }

    .login-left {
        display: none;
    }

    .login-right {
        padding: 32px 28px;
    }

    .login-logo h1 {
        font-size: 36px;
    }

    .login-logo p {
        font-size: 24px;
    }

    /* iOS Safari는 16px 미만 input 포커스 시 화면을 자동 확대한다. 모바일에서만 16px로 올려 확대를 막는다 */
    .login-form .form-control {
        font-size: 16px;
    }
}

/* ===== Account Not Found Page ===== */
.notfound-wrapper {
    min-height: 100vh;
    background: url('/images/login-bg.png') no-repeat center center;
    background-size: cover;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.notfound-logo {
    position: absolute;
    top: 40px;
    left: 48px;
}

.notfound-logo img {
    height: 48px;
}

.notfound-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 40px 48px;
    min-width: 520px;
}

.notfound-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--neutral-90);
    margin-bottom: 24px;
}

.notfound-actions {
    display: flex;
    gap: 12px;
}

.notfound-btn {
    flex: 1;
    padding: 14px 20px;
    border: none;
    border-radius: 12px;
    background: var(--neutral-90);
    color: var(--neutral-0);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s;
}

.notfound-btn:hover {
    opacity: 0.9;
    color: var(--neutral-0);
}

@media (max-width: 768px) {
    .notfound-logo {
        top: 24px;
        left: 24px;
    }

    .notfound-card {
        margin: 0 16px;
        min-width: auto;
        width: calc(100% - 32px);
        padding: 32px 24px;
    }
}

/* ===== Error Pages (404, 500) ===== */
.error-message {
    text-align: center;
    margin-bottom: 32px;
}

.error-message h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
}

/* ===== Error Page Fragment ===== */
.error-page-wrapper {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-page-card {
    text-align: center;
    max-width: 420px;
    width: 100%;
    padding: 40px;
}

.error-page-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.error-page-card h2 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.error-page-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.error-page-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.error-page-actions .btn-action {
    padding: 12px 24px;
    text-align: center;
    text-decoration: none;
}
